<<< Date Index >>>     <<< Thread Index >>>

Re: Changing temporarily to root?



Hi,

> I know I can do this by logging out and logging back in as root, but I hope
> there's an easier way...

I do it useally that way. Note that I have most of the time a root shell
in background:

Ctrl-Z in mutt

[2]+  Stopped                 bin/mutt
(faui03) [~] jobs
[1]-  Stopped                 sudo ${SHELL} --rcfile ${HOME}/.bash_profile
[2]+  Stopped                 bin/mutt
(faui03) [~] fg 1
sudo ${SHELL} --rcfile ${HOME}/.bash_profile    (wd: ~/mp3)
(ROOTfaui03) [/local/icipmail/.arch.os/etc] cp /way/to/scretfile 
/var/tmp/secretfile
(ROOTfaui03) [/local/icipmail/.arch.os/etc] chown sithglan !$
chown sithglan /var/tmp/secretfile
(ROOTfaui03) [/local/icipmail/.arch.os/etc] suspend
[1]+  Stopped                 sudo ${SHELL} --rcfile ${HOME}/.bash_profile  
(wd: ~/mp3)
(wd now: ~)
(faui03) [~] fg 2

Honestly,
        Thomas