[SunHELP] RE: [SunHELP]/sbin/sh

Gary Ren sunhelp at sunhelp.org
Tue Dec 19 15:42:03 CST 2000


Hi Brian,

Many thanks for your email.  I tried "exec /sbin/sh". It does not work for 
root. Anyway I have power off the workstation. By the way, could you please 
tell me how to creat a root2 which have same right with root. With group 
and which UserID should I use.

I appreciate a lot.

At 01:08 AM 12/13/00 +0000, you wrote:
>Hi there,
>
>I take it that you changed root's account shell to csh.
>
>This is generally a bad idea. Not only did you mess up your
>system, you run the risk of not being able to get into the system
>should you be in the situation where you don't have boot media
>and your shared librarys are inaccessable - /sbin/sh is a static binary,
>meaning it depends on no other librarys to work. This is not the case
>with /usr/bin/csh. You should leave root's shell alone, either create a
>root2
>account with csh as it's shell, or simply type "exec csh" when you login as
>root. You are running the risk of getting into further hassle later.
>
>Are there other users on the system that you can login as? You could
>su to root then, and run a valid shell from there. Else, if you can ssh/rsh
>in
>as root (not enabled by default?), you could execute a valid shell by
>specifying
>it.
>
>Else, you have to take the system down and boot off alternative media.
>
>Why don't you want to power it off, it's only a workstation.
>
>Hope this helps!
>Brian.
>
>
>
> > -----Original Message-----
> > From: Gary Ren [SMTP:gangren at scripps.edu]
> > Sent: 13 December 2000 00:35
> > To:   sunhelp at sunhelp.org
> > Subject:      [SunHELP] (no subject)
> >
> > Hello, Friends,
> >
> > I wander if I can received a your great help on the Solaris 8 workstation?
> >
> > I made a big trouble today.
> >
> > I change sh to csh in /etc/passwd, but I forgot to change the path from
> > /sbin/sh to /bin/csh. After I logout, I never got a chance to login as
> > root
> > by anyway. It shows that can't find shell and reject me. I know if I boot
> > from CD and mount / to any other directory could chance this file. But the
> >
> > problem is how I can shutdown the machine by command. I don't want to plug
> >
> > power off.
> >
> > Do you know any solution to shutdown the workstation by command? Any
> > suggestion is very appreciated.
> >
> > Thanks very much for your suggestion
> >
> > with my best regards,
> >
> > Gary
> >
> >
> >
> > _______________________________________________
> > SunHELP maillist  -  SunHELP at sunhelp.org
> > http://www.sunhelp.org/mailman/listinfo/sunhelp
>_______________________________________________
>SunHELP maillist  -  SunHELP at sunhelp.org
>http://www.sunhelp.org/mailman/listinfo/sunhelp




More information about the SunHELP mailing list