root shell

Thilo Six T.Six at gmx.de
Fri Oct 5 20:21:33 UTC 2007


pol wrote the following on 05.10.2007 22:11

<<-snip->>

> sudo -i   lets me enter an interactive root shell, the same as 'sudo -su -'.
> 
> I believe that 'sudo <command> (e.g 'sudo l', see above) runs a non
> interactive shell. If that is so, how to set aliases for non intearactive
> shell? 

As i allready told you.
$ sudo echo $HOME
Password:
/home/USER

$ sudo -i
Password:
# echo $HOME
/root

this means nothing other than, in 'sudo <command>' you have to edit
~/.bashrc

in 'interactive' mode you have to edit /root/.bashrc.



-- 
Thilo

key: 0x4A411E09





More information about the ubuntu-users mailing list