On Sat, 3 Jun 2006 01:04 pm, david wrote:
> On my pure server boxes, I've activated the root account because it's
> the only account that I use. Why use sudo when every time I log in and
> everything I do on the box is done as root, and only I do it. I ssh into
> my own account, then su -

"sudo -H -s" == "Start a root shell and set the $HOME env to /root"

Then add an alias in your shell startup (~/.bashrc et al), in mine I have:
alias rs='sudo -H -s'

ie, "rs" == "Root Shell"

Short sweet and simple.  Still no real root account too :)

I was asked recently: "Why reset the $HOME env?".
The answer is simple: if you don't then when you run something like Midnight 
Commander etc, it changes the permissions on /home/UID/.mc so when you try 
and run "mc" again as the normal user, it will complain bitterly about 
inappropriate permissions.  Some other applications in this scenario will 
simply fail to start at all.

Cheers,

James
-- 
His ideas of first-aid stopped short of squirting soda water.
                -- P.G. Wodehouse

Attachment: pgpclSlzsSumC.pgp
Description: PGP signature

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to