Gentoo Archives: gentoo-dev

From: Denis Dupeyron <calchan@g.o>
To: gentoo-dev <gentoo-dev@l.g.o>
Subject: Re: [gentoo-dev] sudo vs su
Date: Sun, 28 Feb 2010 19:52:23
Message-Id: 7c612fc61002281152h547e2e5fxf0812e14cd3954c2@mail.gmail.com
In Reply to: [gentoo-dev] sudo vs su by William Hubbs
1 On Sun, Feb 28, 2010 at 12:20 PM, William Hubbs <williamh@g.o> wrote:
2 > I am starting this thread because I don't understand why people are
3 > using sudo and su together.  They are completely separate utilities that
4 > do the same thing.  AFAIK, it should be either "sudo -i" or "su -", but
5 > not "sudo su -" which I have seen quite often.  "sudo su -" is redundant
6 > because "su -" does the same thing as "sudo -i".
7 >
8 > "sudo -s", afaik, gives you a root shell but does not clear
9 > out the environment first.
10 >
11 > Am I completely missing something?
12
13 Some systems are configured with a random root password. After a while
14 you get tired of doing 'sudo <command>' all the time and would like to
15 become root but you can't because you don't know the root password.
16 One way around that is 'sudo su -' which allows to become root using
17 your user password.
18
19 Denis.

Replies

Subject Author
Re: [gentoo-dev] sudo vs su Graham Murray <graham@×××××××××××.uk>
Re: [gentoo-dev] sudo vs su William Hubbs <williamh@g.o>
Re: [gentoo-dev] sudo vs su Alec Warner <antarus@g.o>