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.
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).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.