And if things ever get to the point where you don't have a valid shell laying around, IPL the system from (in your case) the tape you used to do the install. Insmod the DASD drivers, mount the root file system, and use the installation system to fix /etc/passwd, or whatever.
Mark Post -----Original Message----- From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On Behalf Of Grega Bremec Sent: Monday, February 13, 2006 3:33 PM To: [email protected] 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
