no root passwd debian

Ian Petersen ispeters-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Thu Nov 22 18:44:13 UTC 2007


On Nov 22, 2007 5:51 AM, Scott Allen <scotta-cpI+UMyWUv9BDgjK7y7TUQ at public.gmane.org> wrote:
> If you want su to provide the same environment as when you "actually"
> log in, use the "-" switch.
>
> For root:
> su -
>
> For other users:
> su - <username>

Just for some variety, you can accomplish the same thing with

sudo -i

or for another user

sudo -i -u <username>

If your sudoers file is setup like mine (which may or may not be
recommended), sudo -i takes you to root with no password, whereas su -
requires a password.

Ian

-- 
Tired of pop-ups, security holes, and spyware?
Try Firefox: http://www.getfirefox.com
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list