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. |