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