[1583] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: /etc/nologin fix

daemon@ATHENA.MIT.EDU (Tim Baverstock)
Tue Oct 29 05:23:56 1996

From: Tim Baverstock <warwick@mmm.co.uk>
Date: Tue, 29 Oct 1996 10:21:48 GMT
To: redhat-list@redhat.com
In-reply-to: <199610290536.AAA26860@redhat.com> (redhat-digest-request@redhat.com)
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

Mac McClellan wrote:
>
> I really screwed up big:
>
> I edited my /etc/pam.conf file and removed the entries for login etc., then
> rebooted before I had upgraded pam, util-linux and NetKit.  
>
> Now I can't login.  Anyone know how I can hack in and change the
> /etc/pam.conf file so I can log in?

Something I've done, until all this pam/shadow password nonsense is sorted out
for sure, is to change the line in /etc/inittab for VC 2 from the code to do
the login thing, to something which just invokes bash directly. It's not
pretty, it's a bit odd (root's home is / rather than /root), and it means that
anyone with access to the machine's keyboard can do anything as root, which is
a huge security hole, but you don't have to log in:

/etc/inittab [fragment]:
    # Run gettys in standard runlevels
    1:12345:respawn:/sbin/mingetty tty1
    #2:2345:respawn:/sbin/mingetty tty2
    2:2345:respawn:/bin/bash -login </dev/tty2 >/dev/tty2 2>/dev/tty2

.----------------------------------. mailto:warwick@mmm.co.uk
! Tim Baverstock, IP Network Admin !   http://www.mmm.co.uk [/~warwick]
`----------------------------------'   plan:"Level 1 RFC1149 compliance."


--
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
  ________________________________________________________________________
  http://www.redhat.com/RedHat-FAQ   http://www.redhat.com/RedHat-Errata
  http://www.redhat.com/RedHat-Tips  http://www.redhat.com/mailing-lists
  ------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post