We help IT Professionals succeed at work.

Lost root password (SCO OpenServer )

Kyliem
Kyliem asked
on
Medium Priority
967 Views
Last Modified: 2013-12-05
Hi, I have a customer who cannot access his root account.  I know he'll probably have to boot from CD and mount his filesystem but I'm not sure of the exact sequence of steps req'd for a SCO OS system.

Thanks
Comment
Watch Question

CERTIFIED EXPERT
Commented:
Hi Kyliem,

    You need to boot from the Root and Boot FDs or CD, and mount the
root file systems on /mnt. (Use divvy command to find out the device name for the /root devision, then mount it to /mnt).

    If you are runing SCO OpenServer 3.X,  all you need to do is edit the
/etc/passwd file to blank the passord field for root, please leave the ":' alone.   vi /mnt/etc/passwd, to play safe, vi /mnt/etc/shadow as well, it is likely you don't have one on the system.

    If you are runing SCO OpenServer 5.X ,  you need to edith the following files:
 
    /mnt/etc/passwd
    /mnt/etc/shadow
and  check the following file out:
    /tcb/files/auth/r/root

   After you edit the about files, umount /mnt, and boot up from the HD, login as root, passwd just <Enter> key. then you need to run passwd to reset the root passwd.

   Good luck!

==============
yuzh

   You can make the Root and Boot FD from any alive SCO System, by use "mkdev fd " command, if you don have one on hand.
   
   

Author

Commented:
Many thanks Yuzh.

Explore More ContentExplore courses, solutions, and other research materials related to this topic.