On Tue, Jan 04, 2000 at 02:55:18PM +0000, Miles mentioned:
> I have a leetle problem here. Someone in the lab (No Shane, NOT me this
> time!) has somehow managed to banjax one of our Ultra-10s by
> removing a pkg they shouldn't have (I think). This is resulting in stuff
>> cleo:> su
> su: unknown id: root
> cleo:> file /etc/passwd
> /etc/passwd: empty file
Ya great wet lettuce.
Best bet is to boot to single user mode from CD;
OK boot cdrom -s
# mount /dev/dsk/c0t0d0s0 /a # (whatever the root part is on U10s)
# cp /etc/passwd /a/etc/
# cp /etc/shadow /a/etc/
# umount /a
# init 6
Then you should be able to log in as root, and change what you want.
Microsoft. The best reason in the world to drink beer.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!