APLawrence.com -  Resources for Unix and Linux Systems, Bloggers and the self-employed

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 https://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)

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 ?

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

Is this 3.2v4.2?

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


Printer Friendly Version

Have you tried Searching this site?

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

Printer Friendly Version

The difference between e-mail and regular mail is that computers handle e-mail, and computers never decide to come to work one day and shoot all the other computers. (Jamais Cascio)



Unix/Linux Consultants

Skills Tests

Unix/Linux Book Reviews

My Unix/Linux Troubleshooting Book

This site runs on Linode