Thanks for the responce Grega.
 
I tried what you suggested, but it does the same thing it does when I try to su 
with no options.  I don't know for sure, but from what I have seen when I try 
to su, Linux does not let you alter the shell of the root user when logging in. 
 This is what I keep getting:
 
#~> su: q: No such file or directory

Ryan

        -----Original Message----- 
        From: Linux on 390 Port on behalf of Grega Bremec 
        Sent: Mon 02/13/2006 3:32 PM 
        To: [email protected] 
        Cc: 
        Subject: Re: Hosed root shell setting in /etc/passwd
        
        

        -----BEGIN PGP SIGNED MESSAGE-----
        Hash: RIPEMD160
        
        Ryan Stewart wrote:
        | I somehow changed the shell directory in /etc/passwd file for root
        | and = now I cannot get in as root.
        |
        | root:x:0:0:root:/root:q
        |
        | I have no other user with administrative permissions to change
        | anything. = Does anyone know how to login to root on the z890 with
        | this situation?  = I have seen some things on single user mode, but I
        | don't know how to do = that with Linux running under zVM.  This is
        | just a practice image so = it's not a big deal, but I would like to
        | know how to fix it for the = future.
        |
        
        su -c /bin/bash --login
        sudo /bin/bash
        
        Hope this helps,
        - --
        ~    Grega Bremec
        ~    gregab at p0f dot net
        -----BEGIN PGP SIGNATURE-----
        Version: GnuPG v1.4.0 (GNU/Linux)
        
        iD8DBQFD8Oz4fu4IwuB3+XoRA1N1AJ9WWDlDrmTuJ146xgEWHU4JQmr3egCfTBYO
        MNnXlNfu0Ce9sIDi89oaSqg=
        =/fIz
        -----END PGP SIGNATURE-----
        
        ----------------------------------------------------------------------
        For LINUX-390 subscribe / signoff / archive access instructions,
        send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or 
visit
        http://www.marist.edu/htbin/wlvindex?LINUX-390
        


----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to