23
May
Can You Have More Than One Root (or Admin) Account On Linux?
Author: admin // Category: LinuxI am using fedora. Can you create more than one root (or admin) account. I normally administer windows, which you can have more than one admin account.
May 23rd, 2009 at 11:49 pm
As the previous person answered, it’s common to use
“groups” to give multiple people administrative
permissions. However, in a sense you can also
have multiple “root” accounts.
The point is that “root” is really user ID “0″. The
UID is what matters, not the name. So you can create
another account (with a different name, home directory,
shell, and password), but as long as the UID is 0,
it’s still “root” in the sense that it has complete
administrative permissions.
This “trick” is sometimes done so that the admins at
a site will have a common “root” password for all machines,
but each machine can also have a “local root” so
that the person who sits at that machine can also
administer it (but *only* that machine).
root:x:0:0:root:/root:/bin/bash
lroot:x:0:0:root:/home/localroot:/…
In this example, admins would log in as “root” and
use the home directory “/root” with “bash”. The
owner of the machine could log in as “lroot”, using
a different password, using the “tcsh” shell.
This gives the illusion of multiple accounts, but since
they have the same UID, they’re really the same user.
May 24th, 2009 at 5:28 am
you can create groups within unix/linux. you can assign users to the ROOT group thereby assigning them ROOT permissions.