i can't seem to login as root anymore on solaris.i was trying to work with Korn shell but my default shell is Bourne. here is what i did.
1) Logged in as root, i created a user.
2) With the user i tried changing the shell of the user to Korn in the /etc/passwd file with
$ vi /etc/passwd but it was a read-only file owned by root.
3) I switched user to root and changed the permission of /etc/passwd to 777
# chmod 777 /etc/password
4) i switched back to the user and was able to edit the /etc/passwd of the shell used by the user.
SHELL=/sbin/sh To SHELL=/bin/ksh
The next day i tried logging in as the user and root and i was unable. i then logged in in safe mode and noticed the permission on /etc/passwd is lrwxrwxrwx and not -rwxrwxrwx. HELP!