[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: New 2.9 install questions...
On Fri, Feb 15, 2002 at 03:01:55PM -0500, Eric LeBlanc wrote:
> Which difference between (in physical machine, not by telnet or ssh or
> wathever) [direct login as root] [su root]
Simple answer : none.
You should never have an interactive root shell. Just run instant
processes as 'root' when they need to.
'sudo' is very nice for this, and it's shipped by default with OpenBSD
(package installation can automatically use it, too) .
For instance if you have to run a daemon as 'root', run it by :
sudo mydaemon &
Instead of :
su -
mydaemon &
exit
That way you always keep a non-privileged shell.
If will save your ass if 'rm -rf *' is made in the wrong directory.
--
__ /*- Frank DENIS (Jedi/Sector One) <j@42-Networks.Com> -*\ __
\ '/ <a href="http://www.PureFTPd.Org/"> Secure FTP Server </a> \' /
\/ <a href="http://www.Jedi.Claranet.Fr/"> Misc. free software </a> \/