Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sudo for another user than root

Status
Not open for further replies.

EAnnie

Programmer
Jul 30, 2001
17
CA
Hi
On all of our servers "su" is disable , we can only use sudo to switch to root . Is it possible with sudo (or something else than su) to change to another user and keep all that loged.

tks in advance

Annie
 
The -u (user) option causes sudo to run the specified command as a user other than root. To specify a uid instead of a username, use #uid.

sudo allows a permitted user to execute a command as the superuser or another user, as specified in the sudoers file. The real and effective uid and gid are set to match those of the target user as specified in the passwd file (the group vector is also initialized when the target user is not root). By default, sudo requires that users authenticate themselves with a password (NOTE: by default this is the user's password, not the root password). Once a user has been authenticated, a timestamp is updated and the user may then use sudo without a password for a short period of
time (5 minutes unless overridden in sudoers).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top