[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to login to a machine with invalid shell in /etc/passwd?



why dont you boot off of your cdrom media, mount your harddisk read/write,
and vi/ed your passwd file ?

single usermode from cdrom media is usually the best bet.

cheers,
.truman.boyes.
---------------------------------------------
 "There is no reason anyone would want a computer in their home,"
  -- Ken Olson, pres., and founder of Digital Equipment Corp., 1971


On Tue, 2 Jan 2001, Steve Wingate wrote:

> This doesn't work on my Solaris 7 box, which coincidentally I am also locked 
> out of for simliar reasons.
> 
> 
> On Tuesday 02 January 2001 16:03, Kevin Sindhu wrote:
> 
> > > Ello,
> >
> > I 2nd that, and yes, su - root -c /bin/sh works.
> >
> > From  man su(1M):
> >
> > Example 3: Executing command  with  User  bin's  Environment
> > and Permissions
> >
> > To execute command  with the temporary environment and  per-
> > missions of user bin, type:
> >
> > example% su - bin -c "command args"
> >
> > Also, you could always boot -s which will give you /bin/sh for root, and
> > then mount /dev/dsk/c0t0d0s0 etc.
> >
> > HTH
> >
> > -Kevin
> 
> ----------------------------------------
> Content-Type: text/x-vcard; charset="us-ascii"; name="kevin.vcf"
> Content-Transfer-Encoding: 7bit
> Content-Description: Card for Kevin Sindhu
> ----------------------------------------
> 
> -- 
> # Steve Wingate, MCSE		      
> # srwingat@gte.net		     
> # http://www.brainbench.com 
> # Transcript ID 1714812
>