VMware Cloud Community
George_B
Enthusiast
Enthusiast

Can not delete user with UID 0

When I initially configured my ESX 3 server I wanted to be able to login as a user configured with the same credentials as root. I created a user with UID 0 from the CLI but now I can't get rid of it. It says 'Access to perform this operation is denied'. I am assuming this is because as it has the same user level as root which is the top level no account has the authority to remove it.

Is there a way of getting around this to remove the account?

Reply
0 Kudos
4 Replies
beckmana
Enthusiast
Enthusiast

Hi,

you can't remove the user root, but you can create a second user with userid 0.

log into console :

useradd -u 0 -o

Andreas

Reply
0 Kudos
George_B
Enthusiast
Enthusiast

This is what I have done, but how do I now remove this user? I get the error message that I mentioned in my previous post.

Reply
0 Kudos
beckmana
Enthusiast
Enthusiast

Hi

log into console :

userdel

Andreas

Reply
0 Kudos
George_B
Enthusiast
Enthusiast

Great, worked a treat. Not sure why the VI Client interface was giving me grief, but I thought I remembered it giving me errors on the CLI as well.

Thanks, points awarded.

Reply
0 Kudos