(no subject)

Rick McKinney (mckinney@kreative.net)
Thu, 26 Mar 1998 10:21:45 -0500

Problem was: I did a global replace of "sh" with "csh" in my passwd file....

In summary the following suggestions were made ( I didnt include the ones
that were the same but only the ones with different variations )

----------------------------------------------------------------------------
-------------------
Boot from CD-ROM, mount the filesystem and fix it.
----------------------------------------------------------------------------
-------------------
boot cdrom -s
mount /dev/dsk/c0t?d0s0 /a
TERM=sun
export TERM
vi /a/etc/passwd
cd /
umount /a
reboot
----------------------------------------------------------------------------
-------------------
Reboot single user from a crdom
boot cdrom -sw
then when the system comes up mount your
root partition on /a
you can then cd /a/etc and edit the passwd file
fix the typo and boot the system up normally.
----------------------------------------------------------------------------
-------------------
Make a note of root (and /etc) mounts
(df / /etc)
boot cdrom -s
mount root on /a (or /tmp/root)
and mount /etc on /a/etc or /tmp/root/etc
change /a/etc/shadow
reboot
----------------------------------------------------------------------------
-------------------
Stop-A the machine and do a 'boot -s', that will bring you up in
single-user mode w/ 'sh' as your shell, fix the passwd file and you're
done. I want to see a summary.
----------------------------------------------------------------------------
-------------------
1. Login as another user that has root priviledges (if you have one)
2. Boot from cdrom, mount the root dir to "/mnt", edit the
"/mnt/etc/passwd", reboot normally
3. Poweroff the box, move the disk to another machine, then follow #2
above (less the cdrom stuff)
----------------------------------------------------------------------------
-------------------