[colug-432] Change Root Password
Rob Funk
rfunk at funknet.net
Wed Dec 19 11:52:05 EST 2012
On Wednesday, December 19, 2012 10:39:49 AM Rick Hornsby wrote:
> Side note: basically, never log in as root.
Agreed.
> Unless the system is so
> borked there is no other way to get in. Log in as yourself, and use sudo
> to execute administrative tasks that require root privs. In some rare
> cases, switching to root for a few minutes is easier -
>
> $ sudo su - root
Easier: sudo su -
(root is the default.)
OR
sudo -i
Or, if you want something closer to your usual environment, but as root:
sudo su
OR even better:
sudo -s
The latter is what I normally do, when I'm not just prefixing individual
commands with "sudo".
More information about the colug-432
mailing list