OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: Re: How to login to a machine with invalid shell in /etc/passwd?
From: Kevin Sindhu (kevintgivan.com)
Date: Tue Jan 02 2001 - 18:03:09 CST


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

-- 
Kevin Sindhu
Systems Engineer        			E-Mail: kevintgivan.com
TGI Technologies Inc.				Tel: (604) 872-6676 Ext 321
107 E 3rd Ave,					Fax: (604) 872-6601
Vancouver,BC V5T 1C7
Canada.

-----BEGIN PGP PUBLIC KEY BLOCK----- Version: 2.6.2

mQCNAzlOktwAAAEEAO6TbT34TInn5G5Ani2uTYQgD6N12NlGn98n6zx54OnUOfma ikm0JzuCgRpnQsWCmIjSjtuWknp07LrkpvIX3SjVqtlrhh9m5+2LssF4Wv8J5PFO YChnc1HY9H6pN9GheKa88dc/kMKwaG+JIY5QtGGQ9LIxDd3dsW8vIn9YMcrlAAUR sAGHtBBrZXZpbkB0Z2l2YW4uY29tsAED =aK0n -----END PGP PUBLIC KEY BLOCK-----