[SunHELP] Root Access Problem

Jeff Howie sunhelp at sunhelp.org
Fri Feb 9 10:07:21 CST 2001


Will Mc Donald wrote:
> 
> First of all, nooooooooo. You really shouldn't change root's shell. Ever!
> 
> I don't know if this would work but you could cat /etc/passwd and see what
> it says root's shell is then symlink that to /bin/sh Could work.
> 
> ----- Original Message -----
> From: <Krishna_Raj at forethought.com>
> To: <sunmanagers at sunmanagers.org>
> Cc: <Sunhelp at sunhelp.org>
> Sent: Friday, February 09, 2001 3:08 PM
> Subject: [SunHELP] Root Access Problem
> 
> > Hello everybody:
> >
> >      When trying to change the default shell of root, I put in a incorrect
> > location (/sbin/ksh instead of /bin/sh) in /etc/passwd file. Without
> realising,
> > I logged out & now, I am trying to logon, it says 'No shell' or invalid
> shell. I
> > haven't set up any passwd for root. I even tried to ftp change the passwd
> file
> > but, I am not able to ftp as root as because ID does not have password.
> >
> >      How do I fix this problem ? I do not have OS CD with me, I got is
> machine
> > pre-installed with Solaris 7.

I'm not sure if using su would work either, something like:

$ su -c "chsh"

or

$ su -c "vi /etc/passwd"

(_really_ not sure about the second one)

-- 
THKS :&>                | Federated Insurance Company of Canada
Jeff.Howie at Federated.CA | Information Systems - P&C
Intr Programmer/Analyst | 204.786.6431.x.217



More information about the SunHELP mailing list