0
I thought you could only use sudo
to temporarily become root
:
sudo vim /etc/resolv.conf
But recently I saw a shell snippet depicting a user using sudo
to become a specific user:
sudo -H -u devops -s
Where devops
was not the original username. After becoming devops
, the user now had elevated privileges.
So are there ways of creating more than 1 root
user? What is devops
's relation to root
in the example above? How do these elevated-but-not-quite-root
users get created/managed?
Also, same question, but for su
.
Thanks in advance!
There is only one root user. Root is called root because it is the root of all users with the userid 0. There can't be two users with the same userid. – FSMaxB – 2013-04-18T13:59:07.713