The_Pirate
Group: Members
Posts: 9
Joined: Mar. 2006 |
|
Posted: Mar. 10 2006,08:20 |
|
I guess the key to the mystery is 'sudo'.
sudo let you execute the one single command following it with root rights, then exits to the previous user. Thus, 'sudo su' ought to give you root status for a brief moment, then drop it again before you can type the next command. If you want to use sudo, i guess the proper command (not quite sure, i tend to use 'su') sequence would be:
cd /etc sudo vi lilo.conf ..edit, save and exit... cd /sbin sudo lilo
if you use 'su' instead of 'sudo', you will remain root until the 'exit' command, or you close the window - then 'su', being a child process of the window will die, too.
Please let me hear if this helps?
|