shadowrider
06-16-2003, 11:43 PM
I just heard from a friend. at work, they're using redhat 6 and had a problem with all the accounts were deleted.
even they couldn't even logged in using the root. Now, what they did was, the booted with bootdisk, launched a bash screen, created a user named "root". So apparently there were 2 accounts with the name "root" which one of them was just a mere regular user. Now, he mentioned something about modifying /etc/passwd and setting userID,group to 0, and there you have it! the "used to be" a regular root, now have become a "super user" root.
any details on doing this exactly?
EDIT
oh sorry...I was wrong.
the root account was deleted also. so i guess this was a way of creating the root account back. but i'd still like to know more details on how to do it though.
even they couldn't even logged in using the root. Now, what they did was, the booted with bootdisk, launched a bash screen, created a user named "root". So apparently there were 2 accounts with the name "root" which one of them was just a mere regular user. Now, he mentioned something about modifying /etc/passwd and setting userID,group to 0, and there you have it! the "used to be" a regular root, now have become a "super user" root.
any details on doing this exactly?
EDIT
oh sorry...I was wrong.
the root account was deleted also. so i guess this was a way of creating the root account back. but i'd still like to know more details on how to do it though.