[Sunhelp] root login problem

Sanjeev Jha sanjeevjha at sunguru.com
Fri Aug 11 16:12:23 CDT 2000


If you have another superuser login, vi /etc/passwd and change the shell from /bin/ksh to /usr/bin/ksh (I think that's the correct path in Sol 7, check by typing #whereis ksh).
If you don't have any other superuser, You have to use the method Marc Pelzer mentioned here.

good luck
Sanjeev


--- Marc Sebastian Pelzer <marc at cube.sh>
> wrote:
>Hello Habib,
>
>Friday, August 11, 2000, 6:38:22 PM, you wrote:
>
>HM> In my /etc/passwd file (ssol 2.6) i changed the login shell
>HM> from "/bin/sh" to "/bin/ksh" and now i can not log in as "root"
>HM> but can log in as a user that has "/bin/csh" in the passwd file?.
>HM> How can i fix this problem?.
>
>init 6
>stop-a
>insert solaris cdrom into drive
>boot cdrom -s
>mount /dev/dsk/c0t0d0s0 /a
>vi /a/etc/passwd
>sync sync sync
>umount /a
>stop-a
>reboot
>
>-- 
>Best regards,
> Marc                            mailto:marc at cube.sh
>
>
>_______________________________________________
>SunHELP maillist  -  SunHELP at sunhelp.org
>http://www.sunhelp.org/mailman/listinfo/sunhelp

_____________________________________________________________
Where you'll find everything under the Sun for the Sun.......www.SunGuru.com





More information about the SunHELP mailing list