[buug] Corrupt root entry in passwd file - Solaris

Stefan Lasiewski mailinglists at stefanco.com
Mon Jan 3 16:06:32 PST 2005


Hey gang,

I have a machine running Solaris 8.

The top two lines of the /etc/passwd (root and daemon)
file somehow got wrapped together in one long
continuous line, like this: 

root:x:0:1:Root User:/:/usr/bin/ksh
daemon:x:1:1::/:/sbin/noshell

(If that line got wrapped, ksh and daemon don't have a
end-of-line character. Like '.../bin/ksh
daemon:x:...')

As a result, I cannot log in as root.

    % su -
    su: Unknown id: root

When I boot into single-user mode or connect via the
console, I get this [1]:

    missing or bad passwd entry for <root>

Any ideas on how I could recover from this? I cannot
log in as root to edit /etc/passwd, and I cannot find
any CD-bootable Linuxus which can use a Sparc, or a
"Bootable Solaris" recovery disk, etc. 

Am I hosed?

And then my next problem is to get the the RAID array
(It's a Sun Enterprise v440) to work on the Bootable
OS, but that's the next step.

Thanks all!

-= Stefan

[1] Ok, you can stop laughing now :)




More information about the buug mailing list