[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?



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