How do I change or recover a lost root password in SCO OpenServer 5.0.7?

Export to PDF | Export to DOC

Problem:  How do I change or recover a lost root password in SCO OpenServer 5.0.7?
Solution:

  1. If you are able to login as another user run /etc/hwconfig -hc and look for the root controller hardware adapter driver of the disk for the root disk.

    For example:

    disk – – – type=S ha=0 id=1 lun=0 bus=0 ht=ciss unit=1
    Sdsk – – – cyls=8717 hds=255 secs=32 unit=1 fts=stdb

    In this case the ht=ciss shows it is the ciss driver.

  2. Download from ftp.sco.com or from the 5.0.7 installation CD in the /images/boot directory get the btld for the root controller and create a btld onto a floppy or CD rom.

    For floppy:

    format /dev/rfd0135ds18

    dd if=btld.img of=/dev/fd0

  3. Insert the 5.0.7 installation CD and reboot the server. (You may have to power off and on, since you cannot shutdown).

  4. 1. At the boot: prompt load the btld (If needed)

    For example:

    Boot: defbootstr link=”ciss”

  5. Continue with the Installation until you get to the Keyboard setup.

  6. At the Keybosard setup of the Installation press F8. Arrow down to the “Shell Escape” and press Enter.
    You will be at an <Installation> prompt

  7. Check to see if /dev/root exisits.

    l /dev/root

    If it does verify is has the major & minor of 1, 42. If not then rm /dev/root

    If you deleted /dev/root or it does not exist create it:

    mknod /dev/root b 1 42

  8. Mount the root filesystem.

    mount /dev/root /mnt

    You might have to clean it up. If the mount is unsuccessful run and then retry step 8.

    fsck –ofull /dev/root

  9. Now change the root system to the hard drive.

    /mnt/opt/K/SCO/Unix/5.0.7Hw/etc/chroot /mnt /opt/K/SCO/Unix/5.0.7Hw/bin/sh

    You will then have a promt with the #

  10. If step 9 is successful, change the root password by entering:

    passwd root

  11. Unmount the root filesystem and reboot

    umount /mnt

    reboot

Leave a Reply

Your email address will not be published. Required fields are marked *