[sudo-users] sudo -s giving login shell
Todd C. Miller
Todd.Miller at courtesan.com
Wed Mar 16 11:36:56 EST 2005
In message <42380026.1040607 at oxalide.com>
so spake Pierre-Yves Ritschard (pierre-yves.ritschard):
> Users here are accustommed to using sudo -s to get a root shell.
> But it doesn't load the /etc/profile as sudo doesn't load a login shell.
> sudo ksh -l works fine but I'm wondering if there is a way of making
> sudo -s start a login shell.
In sudo 1.6.8 and above you can use "sudo -i" for this.
More information about the sudo-users