[1118] in RedHat Linux List

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

/etc/nologin fix hoses things up?

daemon@ATHENA.MIT.EDU (Dan Hopper)
Sat Oct 26 15:05:46 1996

From: Dan Hopper <dhopper@brisco.telogy.com>
To: redhat-digest@redhat.com
Date: Sat, 26 Oct 1996 15:02:33 -0400 (EDT)
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

Anyone else have this fix on the RH4.0 errata sheet hose up logins?  su
still works, though.  

-----
33./etc/nologin doesn't work

Red Hat Linux 4.0 shipped without support for the /etc/nologin file.

Fix:

Remove all the entries for login, rsh, rlogin, and rexec from /etc/pam.conf.   
You can use the following script to do so; simply cut and paste:

 #!/bin/sh
 gawk 'BEGIN {RS="\n\n+"}
       $0 ~ / login authorization/ { next }
       $0 ~ / rlogin authorization/ { next }
       $0 ~ / rsh authorization/ { next }
       $0 ~ / rexec authorization/ { next }
       { print ; printf "\n" }' < /etc/pam.conf > /tmp/pam.conf
 cat /tmp/pam.conf > /etc/pam.conf
 rm /tmp/pam.conf


Or, simply remove the equivalent entries by hand using your favorite text
editor.
-----

Dan Hopper
dhopper@telogy.com


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