shell in /etc/passwd cahnged no root login possible

From: Andelko Begic (andelkobegic@hotmail.com)
Date: Fri Oct 22 2004 - 13:09:14 EDT


Hi,
i have the problem with a root login. The shell was changed and after the
server which is running Solaris 8 on SPARC, was rebooted so i do not know
how to get into as a root. The server is running for test purposes so more
people has access to root account. I can log in with another user name and
pwd.
So in /etc/passwd root has shell in /usr/bin/bashs that i checked from
normal user account.
I have tried to change that file from single user mode but didnt work

# ok boot cdrom -s

# # mount /dev/dsk/c0t0d0s0 /mnt

mount: /dev/dsk/c0t0d0s0 is already mounted, /mnt is busy,
        or the allowable number of mount points has been exceeded
# mkdir /tmp/mnt
# mount /dev/dsk/c0t0d0s0 /tmp/mnt
mount: /dev/dsk/c0t0d0s0 is already mounted, /tmp/mnt is busy,
        or the allowable number of mount points has been exceeded

# fsck /dev/rdsk/c0t0d0s0 -y

** /dev/rdsk/c0t0d0s0 (NO WRITE)
BAD SUPER BLOCK: MAGIC NUMBER WRONG
USE AN ALTERNATE SUPER-BLOCK TO SUPPLY NEEDED INFORMATION;
eg. fsck [-F ufs] -o b=# [special ...]
where # is the alternate super block. SEE fsck_ufs(1M).

# fsck -F/dev/rdsk/c0t0d0s0

fsck: Fstype /dev/rdsk/c0t0d0s0 exceeds 8 characters

###################
those solutions i found on the web but i could not change.
Could you please help me. I need help desperatly.

Regards,
Andjelko

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.com/
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:29:36 EDT