![]() |
|
|
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 |
| sudo, or not sudo: that is the question | iBot | UNIX and Linux RSS News | 1 | 02-07-2008 01:40 PM |
| Sudo ???? | ShellBoy | UNIX for Advanced & Expert Users | 4 | 07-20-2007 02:14 PM |
| using sudo in HP-UX | yoavbe | Shell Programming and Scripting | 1 | 07-17-2006 08:54 AM |
| Help with Sudo | geomonap | UNIX for Advanced & Expert Users | 1 | 03-29-2006 04:50 PM |
| Sudo | reddyb | UNIX for Dummies Questions & Answers | 1 | 08-23-2001 05:15 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
You can control the roles that user going to own after su.
E.g., if you want user1 to do su to user2 only then do the below: 1. entry to be added to sudoers: user1 <hostname> = /usr/bin/switch.sh (just an e.g.,) 2. create the file /usr/bin/switch.sh with the line below su - user2 3. chmod +x /usr/bin/switch.sh 4. ask user user1 to run the below: $sudo /usr/bin/switch.sh DONE |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|