Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

You can create a user that has privileges like root, and it's home directory will fall under /home/username. Why does root get its own folder at the top level of the file system? Is this just convention, a security concern, or is there a performance-related reason?

share|improve this question
    
Note that the root user and "admin" users are not normally the same thing at all. An "admin" user (assuming this is what you mean by "privileges like root") is typically just a regular user that is permitted to execute commands as root using something like sudo. –  Chris Kuehl Jun 14 '12 at 13:29
    
Root is /root, because that is where the filesystem standard says it should be. :p pathname.com/fhs/pub/fhs-2.3.html –  Zoredache Jun 14 '12 at 22:51

1 Answer 1

up vote 40 down vote accepted

One reason: On many systems, /home is on a separate partition (or network share) that might fail to mount and it is a good idea to allow root to login with his usual environment whenever possible.

share|improve this answer
1  
This is the same reason why most unix systems have /sbin, /sbin and a /usr/bin and /usr/sbin. The first two contain essential binaries to bring the system up and are therefor located on the root filesystem. –  Hennes Jun 13 '12 at 17:15
1  
@Hennes you repeated /sbin twice what did you mean to say? –  tacos_tacos_tacos Jun 13 '12 at 17:34
    
@jshin47 Same as the second part, without /usr/, I would guess. /bin/ and /sbin/. –  Izkata Jun 13 '12 at 18:09
    
There is a very good discussion at lists.busybox.net/pipermail/busybox/2010-December/074114.html. I think it may have started as a unique user system (the root user) and after some improvements (don't know if Unix refers to unique user of some sort) it may have been necessary to add different users with different configurations that need to reside on some other directory. Just guessing. –  licorna Jun 13 '12 at 18:50
1  
@Alberto: Unix is ancient and the recovery abilities of modern systems couldn't even be imagined back in the days. There are many things in a Unix-like system that would certainly be handled differently from todays perspective. Also, what you put into your root folder is entirely up to you. –  SvW Jun 14 '12 at 20:24

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.