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



Helu,

  I would try this:

   
    * If you can su to root via a normal user account, just leave out the
      '-' so it keeps the valid shell.  Edit the passwd file to change
      root's shell and you're done ( use vipw if possible.. if not just vi 
      ):

       joeuser@fooked-box: $ su root
       # vipw
       ( Change root's shell )
       # exit


    * Get the Solaris 7 media CD and:

        L1-A

        boot -s cdrom

        mount root partition to /mnt
  
        Edit /mnt/etc/passwd

        Reboot

    
      
    * If you have a Jumpstart server accessible and that's how you do
      things:

        L1-A

        boot net -sw

        <SAME AS ABOVE>



   L1-A sequence on a Netra LOM/Console is ^~#   or some such.  It should
be in your documentation.. can't remember off the top of my head.

   Also.. be careful that you have a statically linked bash so that you
don't have to rely on other libraries being available when it's 3:00
a.m. and you need to be root to work on some critical problem  o_0

Hope this helps ;)

-- Craig