21

Do they refer to the same thing or is root just a location in filesystem (its ultimate base) and superuser a privileged user (sort of equivalent of windows administrator account) ? Do they need the same password ? Is superuser the kernel itself?

24

'root' is traditionally the name given to the user account with superuser level rights. In this respect they are one and the same, though there is no rule that I know of that says that the superuser account must be called root.

It may be that the account was named 'root' due in part to the fact that only the superuser has write permission to the root directory (/)

The Windows Administrator account is not analogous to the Unix superuser account since there are restrictions on what a Windows Administrator can do. The analog to root on Windows NT based OSes is the SYSTEM account, which cannot be used by an interactive user.

  • 16
    The kernel identifies the root user by its uid (0). You can name that account whatever you like in /etc/passwd. Not having an account called root may confuse some of the system software, but you can have more entries; some paranoid people have a root entry and a toor entry in /etc/passwd, both with UID 0, but with different shells, so that if one of the shells was broken somehow (e.g. due to a disk error) the other one could be used to log in and repair the system. – Gilles Apr 9 '11 at 10:37
  • 1
    BTW there is a distribution called GoboLinux where the superuser is called ... gobo – Alois Mahdal Jul 16 '15 at 8:42
  • Regarding Windows -- there's no exact equivalent to the Unix superuser. SYSTEM is a well-known group with a built-in logon session, but the associated groups and privileges vary between different SYSTEM access tokens. This logon is the closest analog to Unix root, however. An interactive process can run as SYSTEM. Commonly psexec.exe is used for this, but any privileged process can get a SYSTEM primary token for a session and call CreateProcessAsUser. – Eryk Sun Nov 3 '18 at 15:23
0

/ is the top level directory in linux.All the subdirectories is under the /. the /root is default home directory of root user.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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