87

Somewhat inspired by this other question on the use of the term “Super User”, why the heck is the most powerful user on a Unix/Linux system called root? Why not admin, sysop, base, king or something similar? When I read the term root all I think of is the root of a plant.

Please provide citations and references and not just casual observations.

  • 27
    Origin of 'root' account. – Kamil Maciorowski Jan 22 '18 at 16:27
  • 4
    Read the link on the further reading section of my answer to the "Super User" question :) history - Origin of 'root' account - Unix & Linux Stack Exchange – DavidPostill Jan 22 '18 at 17:51
  • 13
    >>When I read the term “root” all I think of is the root of a plant. Conceptually that's where the term comes from. You should however look up what it means in Australia :-) – mcalex Jan 22 '18 at 19:54
  • 2
    @mcalex en.wikipedia.org/wiki/Superuser says "In some cases, the actual name of the account is not the determining factor; on Unix-like systems, for example, the user with a user identifier (UID) of zero is the superuser, regardless of the name of that account ... In Unix-like computer OSes, root is the conventional name of the user who has all rights or permissions (to all files and programs) in all modes (single- or multi-user). Alternative names include baron in BeOS and avatar on some Unix variants" – emory Jan 23 '18 at 1:17
  • 1
    I always thought it was short for "root access". – fredsbend Jan 23 '18 at 4:29
86

The ancient precursor to the precursor of Linux (Unix) was Multics operating system and in Multics the privileged user’s home directory was the root directory.

And some super-creative type came up with the name root for the privileged user. And it stuck, because Unix was created by people who had worked on Multics, e.g., Dennis Ritchie or Ken Thompson, the original writers of Unix.

Probably there is not a reliable source for it, there are only assumptions as mine, similar to the following: "The name root may have originated because root is the only user account with permission to modify the root directory of a Unix system." from Wikipedia: Superuser.

  • 4
    Can you provide citations and references and not just casual observations? – JakeGould Jan 22 '18 at 16:21
  • 19
    If you read the original documentation of Multics you will see there is a root user who controls the root folder: web.mit.edu/multics-history/source/Multics/mdds/mdd003.compout – HackSlash Jan 22 '18 at 16:46
  • 1
    @HackSlash Good reference! Can you point out where exactly this is stated so it can possibly be quoted and added to this answer? – JakeGould Jan 22 '18 at 16:55
  • 1
    The aforementioned listing appears to be output from the list_vols command in section 6-40 of the document, where "root" is listed as the Logical Volume, sadly not the user. (That document mentions of a "root logical volume", "root physical volume", "root card" and "root directory", as well physical volumes named "root2" through to "root6". A heavily used term!) – joeytwiddle Jan 23 '18 at 9:35
  • 4
    The root still had their home dir in root on Digital Unix 3 in the nineties ... – Edheldil Jan 23 '18 at 13:55
8

Some premises

  1. It is not advised (really not advised) but you can change that name.
  2. It was not always so [1]

    some early UNIX systems (particularly ones from CMU) called the user "avatar" - to designate the special state and try to dissuade people from logging in as it. In those same old days, since BSD systems used /bin/csh as the default root shell, sometimes you would see systems with the login sroot and kroot as a second & third line in the password file with /bin/sh and /bin/ksh as the default shell.

Simply It becomes the prevailing one.

It's related to the fact that the root user is the only to have the ownership of the root folder (/) on which all the file system resides (all other files and directories, including their subdirectories, and files), so de facto as root of all powers and privileges, of all processes (remember that init is the root of the processes and it is owned by root too) and of the critical processes, the daemons ...


It's possible to find some support more on the Linux Information Project states in its root page [2]

The use of the term root for the all-powerful administrative user may have arisen from the fact that root is the only account having write permissions (i.e., permission to modify files) in the root directory.

Stripping some text more from the root page of The Linux Information Project [2]

root is the user name or account that by default has access to all commands and files on a Linux or other Unix-like operating system. It is also referred to as the root account, root user and the superuser.
...
Root privileges are the powers that the root account has on the system. The root account is the most privileged on the system and has absolute power over it (i.e., complete access to all files and commands). Among root's powers are the ability to modify the system in any way desired and to grant and revoke access permissions (i.e., the ability to read, modify and execute specific files and directories) for other users, including any of those that are by default reserved for root.
...
The use of the term root for the all-powerful administrative user may have arisen from the fact that root is the only account having write permissions (i.e., permission to modify files) in the root directory. The root directory, in turn, takes its name from the fact that the filesystems (i.e., the entire hierarchy of directories that is used to organize files) in Unix-like operating systems have been designed with a tree-like (although inverted) structure in which all directories branch off from a single directory that is analogous to the root of a tree.

... (speaking about the Unix beginning)
It was also necessary to have a means for enabling a system administrator to perform such tasks as entering user directories and files to correct individual problems, granting and revoking powers for ordinary users, and accessing critical system files to repair or upgrade the system.
(Here it is implied the need of a hierarchy and a root point from which to start from.)


BTW it's seems that the name God was just taken and could stir up resentments and protests...

  • 1
    Upvote for "tree". That just seems to be glaringly obvious to me. We already refer to the directory / as "root", because it is the root of the file system tree, and the root user seems analogous – Mawg Jan 24 '18 at 14:50

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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