1 |
Neil Bothwick wrote: |
2 |
> On Sun, 28 Feb 2010 13:06:43 +0800, ubiquitous1980 wrote: |
3 |
> |
4 |
> |
5 |
>>> Some ENV variables are unset by sudo. |
6 |
>>> |
7 |
> |
8 |
> You can alter that behaviour in /etc/sudoers. I have |
9 |
> |
10 |
> Defaults:%wheel !env_reset |
11 |
> |
12 |
> and don't see this. |
13 |
> |
14 |
> |
15 |
>>> But anyway, "sudo su" makes zero sense :P |
16 |
>>> |
17 |
> |
18 |
> |
19 |
>> sudo su makes sense if you want to use the root account while having the |
20 |
>> root account locked. |
21 |
>> |
22 |
> |
23 |
> The root account is hardly locked if you can log into it with sudo su |
24 |
> (or sudo screen) but sudo -s or sudo -i make more sense in this |
25 |
> situation. |
26 |
> |
27 |
> |
28 |
> |
29 |
localhost ubiquitous1980 # passwd -l root |
30 |
Password changed. |
31 |
localhost ubiquitous1980 # exit |
32 |
exit |
33 |
ubiquitous1980@localhost ~ $ su |
34 |
Password: |
35 |
su: Authentication failure |
36 |
ubiquitous1980@localhost ~ $ sudo su |
37 |
Password: |
38 |
Your account has expired; please contact your system administrator |
39 |
su: User account has expired |
40 |
(Ignored) |
41 |
localhost ubiquitous1980 # |