![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
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 |
| Display Modes | Rate This Thread |
|
|