LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Loging in as root. (https://www.linuxquestions.org/questions/linux-general-1/loging-in-as-root-95455/)

javaarmy 09-22-2003 06:51 AM

Loging in as root.
 
I am the only one who uses my computer and I've got it setup only to have one user, with my password. But I also set up a root password as well. Is there a way to turn this off, or log in as root so that I am not promted each time?

XavierP 09-22-2003 07:02 AM

As far as logging in as root goes - no no no. You should not log in as root on a regular basis - if someone gains access to your pc they will have full rights. If you make a mistake while logged in, you could wreck your machine/setup.

Far safer to use su for those times you need to be root.

Also, for security, it is safer to need a password. Once again, if someone can get access to your box you run the risk that they will be able to nasty things to your setup.

Yes, passwords are inconvenient, but it will save you from unnecessary grief.

Here endeth the lesson :p

javaarmy 09-22-2003 07:22 AM

k, and i like your sig.

XavierP 09-22-2003 07:52 AM

I can definitely recommend Robert Rankin if you're looking for something to read!

The Armageddon trilogy is hilarious. :)

german 09-22-2003 07:57 AM

add something to /etc/sudoers to allow your user to execute commands as root without a pass. Then when you want to, type "sudo" before... like

$ sudo /etc/rc.d/init.d/httpd start

or something.

B.


All times are GMT -5. The time now is 11:33 AM.