Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

root account not found 1

Status
Not open for further replies.

Tranbo

IS-IT--Management
Apr 14, 2010
75
US
System crashed and upon reboot it said root account not found.

I have copy of user accounts from "ap" command. can the root account be restore from that file?
 
Reboot in single user mode to restore the root account.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Back from the Death!.....

is it possible to delete root account from the scoadmin/account/ ? by accident?

I was deleting one of the user account before the system crashed. I 'm sure I selected the right account and when it ask me are you sure...I remember it was the user account that selected not the root account.

Thanks for all your help
 
It's always nice to have a second "root" account just for such issues (or especially when root's password is accidentally changed and doesn't get noticed for weeks or months). Just create another user account, then change the UID to "0" in /etc/passwd and /tcb/files/auth/{a-z}/{newuser}.
In the case of a 'lost' password, you wouldn't be able to enter maintenance mode, so this provides yet another way to resolve such problems.

This idea is ONLY good if done beforehand, of course.

I've never tried (obviously) to accidentally remove the 'root' account. I'm kind of surprised the system would even boot in that case, but I'm glad PHV's suggestion got you going.

"Proof that there is intelligent life in Oregon. Well, Life anyway.
 
I had tested to removed the root account from the scoadmin/Account manager (not on the real live system) but It is not possible. So what I'm concern about now is not to deleted user account as it is might crashed the system again.

thanks for your help.

 
here is my note for the disaster:

my passwd and shadow file were zero out...no user account and passwd
available..the system let me have access to console. I restored the passwd and shadow file fixed the problem

#cp -p passwd /etc/
#cp -p shadow /etc/

that's allow me to reboot and login

I will need to have a good backup of passwd and shadow files going forward.

Thanks for your help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top