Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login




Remember Me
Forgot Password?
Join Us!

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Donate Today!

Do you enjoy these
technical forums?
Donate Today! Click Here

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.
Jobs from Indeed

Link To This Forum!

Partner Button
Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Tranbo (IS/IT--Management)
2 Dec 11 13:08
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?
Helpful Member!  PHV (MIS)
2 Dec 11 14:53
Tranbo (IS/IT--Management)
2 Dec 11 15:11
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
motoslide (MIS)
2 Dec 11 18:46
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."

Tranbo (IS/IT--Management)
2 Dec 11 19:57
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.

 
Tranbo (IS/IT--Management)
7 Dec 11 19:30
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

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Back To Forum

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close