> Hello all,
> I'm new to the UNIX world comming from an NT background.
> One of my clients running SCO 2.1 has a problem. He has forgotten the root
> This is causing some serious problems (obviously). A file needs to be
> deleted that root owns (the file keeps growing in size and crashes the
> Can anyone give me any ideas on a way to get root access or at least change
> file ownership? Basically I need to break into this box.
> I have access to an account that almost has root access BTW. I figure there
> must be a known issue in an older version of SCO such as this.
> Also, can anyone tell me if SCO 2.1 can support IDE hard drives and
> Thanks, repy by e-mail if possible.
> Dave Nagy
this is part of FAQ of Steve Dunn SCO, perhaps helps:
How do I reset the root password if I forget it? (part 1)
This procedure will work for Xenix, and for Unix as well if you are using a
very relaxed security level (one which stores encrypted passwords directly
in /etc/passwd). If you're using a higher security level on Unix, look for
part 2 below.
Boot the system from your emergency boot diskettes (if you didn't make these
and keep them up to date, shame on you, but you should be able to use N1/N2
instead, and see the entry on crashing out of these diskettes below). Next,
mount /dev/hd0root /mnt; this will mount your hard drive's root filesystem
on /mnt. Edit /mnt/etc/passwd. The first line will be your root line, such
Edit out the encrypted password (don't touch anything else!) so that the
line reads something like
Save the file and shut down. Reboot from the hard drive. Your root password
has now been removed, and you can reset it normally.
How do I reset the root password if I forget it? (part 2)
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.
How do I reset the root password if I forget it? (part 3)
This procedure will work for any variant of SCO Xenix or Unix. As above,
boot from your emergency boot diskettes and mount /dev/hd0root /mnt to gain
access to your hard drive's root filesystem. Now, run /mnt/bin/chroot /mnt
"/mnt/bin/passwd root" (check the chroot man page for more info on how it
works). As before, shut down and reboot. It has been reported that on
3.2v4.2 (and possibly others), this must be done in two steps:
/mnt/bin/chroot /mnt "/bin/su root", followed by passwd.