Unix, Xenix and ODT General FAQ

This article is from a FAQ concerning SCO operating systems. While some of the information may be applicable to any OS, or any Unix or Linux OS, it may be specific to SCO Xenix, Open There is lots of Linux, Mac OS X and general Unix info elsewhere on this site: Search this site is the best way to find anything.

(Old Sco Unix) How do I reset the root password if I forget it? (part 2)

(For Linux, see http://www.aplawrence.com/Linux/lostlinuxpassword.html)

This is another procedure involving manually editing files, and is specific to SCO Unix 3.2v4.0 through 3.2v4.2. The location of the encrypted passwords depends on the security settings. Look in /etc/passwd, /etc/shadow, and /tcb/files/auth/r/root; one or more of these will be used depending on how you have security configured. Follow the procedure in part 1 above; instead of editing /etc/passwd, edit the appropriate file(s) from the above list, and delete the encrypted password field. Note that formatting is critical; while you can delete the contents of the field, you must not remove separators, and making seemingly minor errors such as leaving blank lines can cause problems. Save, shut down, and reboot. C2 security will complain about what you've done; to make it happy, run /etc/fixmog. You may also want to run /tcb/bin/integrity and /etc/tcbck.



Got something to add? Send me email.





(OLDER) <- More Stuff -> (NEWER)    (NEWEST)   

Printer Friendly Version

->
-> (Old Sco Unix) How do I reset the root password if I forget it? (part2)

2 comments



Increase ad revenue 50-250% with Ezoic





Wed Dec 10 18:02:58 2008: 4894   anonymous


Hi, i have this probl�me with an old installation and the administrator of the system is dead. I have respected your recommandations but i cannot use vi or ed to view and edit these files /etc/passwd and or /etc/shadow. the system answer vi not found or ed not found. I have breaked out the installation after answer the keyboard type by pressing F8 and selecting Shell Escape. What is the command to view thes files ?
regards



Wed Dec 10 18:09:10 2008: 4895   TonyLawrence

gravatar
Is this 3.2v4.2?

Did you try /mnt/usr/bin/vi ?





------------------------
Kerio Samepage


Have you tried Searching this site?

Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.

Contact us