multiple user accounts with uid 0 . I want to delete all user names except "root"
Hi guys,
Here's the problem, I asked a coworker to give himself a new user account on our SUSE 10 box. He was going to create a cron job for the account he was making, and wanted to be an equivalent of the root user. He logged in as root and created a new account with the following commands: Code:
useradd -ou 0 bob Code:
userdel -r bob Thanks, Corey |
Hi,
interesting problem. Now I have not tried this since I do not want to mess up my system but you could try to edit the file /etc/passwd Search for the user and change his uid (gid) to something else. Preferably to an unused number. Log out and then log back in as root. The 'active' error should not appear if you now try to delete the account and remake it properly. P.S.: Welcome to LQ. |
Thanks crts you're a life saver. I changed bobs uid by editing passwd . That logged him in as a normal user, but when I logged in as root I still wasn't able to delete the account with userdel, it gave me the same error. I was however able to see the bob user in yast and delete it that way. Still it's very strange that the command still wouldn't work. Anyway I got the problem resolved and that's good enough for me. Thanks for you help again and for the welcome crts.
-Corey |
All times are GMT -5. The time now is 02:44 PM. |