Re: sudo to fully switch to another user
"Todd C. Miller" <[email protected]>
| Newsgroups | gmane.comp.tools.sudo.user |
|---|---|
| Message-ID | <[email protected]> |
Is there a reason you cannot run "sudo -i" instead of "su -"? That will cause sudo to change the cwd to the target user's homedir and run a login shell. You would have to enumerate the shells you want to allow in the rule but that doesn't seem unreasonable. For example: millert@linux-build:~$ pwd /home/millert millert@linux-build:~$ sudo -i root@linux-build:~# pwd /root - todd ____________________________________________________________ sudo-users mailing list <[email protected]> For list information, options, or to unsubscribe, visit: https://www.sudo.ws/mailman/listinfo/sudo-users