Those Root’s Run Deep – Create a Second Root Account on ESX

by bunchc on December 10, 2008

Found this in VMware’s KB 1005278

[root@esx root]# adduser -u 0 -o -g 0 -G 0,1,2,3,4,6,10 root2
[root@esx root]# passwd root2
Changing password for user root2.
New UNIX password:
Retype new UNIX password:
passwd: all authentication tokens updated successfully.

After spending some time in the adduser man page, I found that while long, that command makes sense. Here’s what it does:

“-u 0” – Sets uid (user ID) 0, or root’s user ID

“-o” – Tells the system to allow a non-unique user ID

“-g 0” – Sets the initial group to 0 (root)

finally “-G 0,1,2,3,4,6,10” sets the additional groups, you can “cat /etc/group-“ to see what all of those are.

{ 3 trackbacks }

Why Would You Want A Second Superuser? : Bob Plankers, The Lone Sysadmin
December 23, 2008 at 7:27 am
It’s Just Another Layer » root == Bad
December 27, 2008 at 7:20 pm
root == Bad « H9Newser’s Blog
December 28, 2008 at 7:17 pm

Comments on this entry are closed.

blog comments powered by Disqus

Previous post:

Next post: