LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Root vs. User (https://www.linuxquestions.org/questions/linux-newbie-8/root-vs-user-108821/)

yzrider210 10-26-2003 05:20 PM

Root vs. User
 
I've heard that you shouldn't normally login as root, but why? What exactly is the difference, and what is so dangerous about logging in as root?
:newbie:

tgflynn 10-26-2003 05:25 PM

System files and directories generally belong to root. When logged in as root it is easy to mistakenly delete or modify them in such a way as to require a complete reinstallation of the system.

When logged in as a user that user can only modify files he owns so he can't trash the system.

Tim

classon 10-26-2003 06:12 PM

An other tip is to log out almost directly after you done your root-thing. Otherwise you will end up with lots of files and directories that you cannot delete o write to when you are logged in as a normal user.

I understand that one might think that is would be handy to always be root. But believe me. Some guys really regret that mistake when they have to install everything from the beginning again.


All times are GMT -5. The time now is 06:04 AM.