How to Remove the User with Root id

I was checking the users in my unix box. Some old users where created by the previous administrator. When i tried to delete from the smc it was throwing error, “The account is mandatory, cant be deleted”.

So, There is a workaround.

1. remove the entry from the passwd file # vi /etc/passwd

2. #pwconv

3. cat /etc/shadow

Leave a Reply

Your email address will not be published. Required fields are marked *