Why is the most powerful user on a Unix/Linux system called “root?”

89

11

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.

JakeGould

Posted 2018-01-22T16:01:56.207

Reputation: 38 217

28Origin of 'root' account. – Kamil Maciorowski – 2018-01-22T16:27:50.670

5

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 – 2018-01-22T17:51:21.573

@emory as far as linux is concerned, it's more than convention it's inbuilt. see for ex: this unix & linux question or linuxquestions

– mcalex – 2018-01-22T19:46:48.160

14ockquote>

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 – 2018-01-22T19:54:26.100

2

@mcalex https://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 – 2018-01-23T01:17:34.667

1I always thought it was short for "root access". – 287352 – 2018-01-23T04:29:35.073

2@mcalex I always assumed it was named by Australians because it's the account that can "root" your computer. – mcottle – 2018-01-24T03:33:43.963

"root of all evil"? – Ivanka Todorova – 2018-01-24T08:16:31.733

2With the Zeus (Zilog enhanced UNIX system) for Z8000, the super user was zeus. – Jonathan Leffler – 2018-01-25T13:31:25.033

Answers

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.

MarianD

Posted 2018-01-22T16:01:56.207

Reputation: 2 572

4Can you provide citations and references and not just casual observations? – JakeGould – 2018-01-22T16:21:13.930

19

If you read the original documentation of Multics you will see there is a root user who controls the root folder: http://web.mit.edu/multics-history/source/Multics/mdds/mdd003.compout

– HackSlash – 2018-01-22T16:46:59.713

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 – 2018-01-22T16:55:30.137

It's a long document and you really need to read it if you want to understand. It shows a file list that looks like "ls -l" complete with owner ACLs. You can see that there is a user named "root" who owns certain entries.Full history found here: http://web.mit.edu/multics-history/#history

– HackSlash – 2018-01-22T16:57:04.253

1The 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 – 2018-01-23T09:35:16.987

4The root still had their home dir in root on Digital Unix 3 in the nineties ... – Edheldil – 2018-01-23T13:55:43.103

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...

Hastur

Posted 2018-01-22T16:01:56.207

Reputation: 15 043

1Upvote 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 says reinstate Monica – 2018-01-24T14:50:34.997