The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
differnce between these cmds wrapster Shell Programming and Scripting 1 03-25-2008 11:49 AM
sudo, or not sudo: that is the question iBot UNIX and Linux RSS News 1 02-07-2008 01:40 PM
sudo and ssh jOOc UNIX for Advanced & Expert Users 3 11-12-2007 04:48 PM
What's the difference: 'nuhup cmds' Vs 'cmds &' billshu SUN Solaris 5 05-13-2004 12:01 AM
?script/cmds 2 list open files???? bn80865 UNIX for Dummies Questions & Answers 3 01-22-2001 02:55 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 11-22-2006
scottsl scottsl is offline
Registered User
  
 

Join Date: Nov 2005
Posts: 15
Using sudo for specific cmds

I've been asked to provide access to my system for another group of individuals to perform WebSphere and Portal tasks (stop/start specifically). I run both as root (we can debate this one later) and so know I have to figure out a way for these individuals to start and stop WebSphere and Portal as themselves. If they type stopServer blah blah blah, I see error writing to the log files. I could just make the logs directory 777 and be done with it but I'm not sure what else will break along the way.

I added them to my sudoers file as such:

# Runas alias specification
Runas_Alias WAS = root

# Cmnd alias specification
Cmnd_Alias BIGCMDS = /usr/sbin/*, /usr/local/sbin/*, \
/usr/bin/*sh, /etc/*, \
Cmnd_Alias SECURITY = /usr/bin/passwd, /usr/bin/su, \
/usr/sbin/vipw
Cmnd_Alias WPS = /usr/local/WASscripts/*

# User privilege specification

root ALL = (ALL) ALL
%sysadms ALL = (ALL) ALL
%opsids ALL = (ALL) ALL
%devids ALL = (ALL) ALL,!SECURITY
%waswps ALL = (WAS) WPS,!SECURITY

but when they try to run a script to stop and start WebSphere, they get
Sorry, user <x> is not allowed to execute './stopwas' as root on <server>.

My file permissions on the scripts are 755. What am I missing in my config file?

Thanks
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:50 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0