Re: Doing administrative work
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 01/21/07 21:03, Jim Hyslop wrote:
> OK, this latest discussion about logging in as root got me thinking. I'm
> fairly new to Linux. Occasionally, when I need to set up something (as
> an example, my recent DNS questions) I will need to edit a config file,
> and restart the daemon. I usually start by logging in as myself, then
> issue individual 'su [command]' commands. After a while, I get tired of
> typing in the root password over and over, so I just issue a simple 'su'
> and work as root from there.
>
> Should I be taking a different approach?
I'm sure that some will want to rake me over the coals, but I say
that you should just type:
$ su -l
It will prompt you for the root password, then execute /root/.bashrc
and cd ~root and then drop you to a # prompt.
I keep *one* xterm window running "su -l" at all times. (Of course,
my xscreensaver is also aggressive about locking the console.)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFFtEC3S9HxQb37XmcRAsLTAKDddry/yHTqkW/YVf5uwBLdvp4sEgCfZtj+
NWfrE9pqJYlX8bbFFIVskrw=
=z6Em
-----END PGP SIGNATURE-----
Reply to: