Report Offensive Message

Well.... the skinny
With good reasons do admins inform you NOT to log in as root.. I run a multitude of servers, and server farms; and have been doing so for around 15 years or so. Therefore I'm not new to Unix,Linux,Windows, or Cisco, Sun, etc... now...

And I used to log in as root, never even created a normal user account for myself... so everything as root... until, I switched screens, which was logged into my production web server, cd (which takes you to your home directory {thats cd [enter]} And proceeded to rm -rf; No problem right?

Until I noticed the prompt stated / yep.. that's right, in all my experience, I failed to noticed, that I went to the wrong TTY, and that mistake took every out.. oh yeah, pull the plug and reboot try to restore by reload/pulling from the inodes.. but you talk about a pain in the a**... yep, last time I every logged in as root. Besides the story here, root, can really screw up systems, and without knowing until it is too late.. like
mount -o bind /var/data/data /home/data
mount -o bind /home/data /var/data/data

YES you can do that, I have seen it done...

Now... for you admins... I hate logging in and having to enter my password every time I want to sudo a command... easy steps for you..

Make sure you have sudo installed.
groupadd sudoers
echo -e "%sudoers\tALL=(ALL)\tNOPASSWD: ALL" >> /etc/sudoers
usermod -a -G sudoers __username__

no __username__ will never have to use the password when issuing a sudo. This used with private key remote logins, and well... ain't nobody getting unless they are at your console, or steal your laptop/desktop

Enjoy.
Posted by Archiac
13th May 2010