with Redhat, the /etc/nologin.txt will only be displayed when the users shell is listed as a nologin shell.
otherwise the contents of /etc/nologin is displayed. If you only touch it, nothing will be displayed, but no login will take place. George >-----Original Message----- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >Sent: Friday, May 21, 2004 3:25 PM >To: [EMAIL PROTECTED] >Cc: Doug Chanco >Subject: RE: [U2] Preventing Unix Login > > >Non-member submission from ["Doug Chanco" <[EMAIL PROTECTED]>] > > >To keep users other than root from being able to login do the >following: > >1. login as root >2. touch /etc/nologin >3. vi /etc/nologin.txt (put in this file the message you want >displayed, >otherwise users may just think that they forgot their passwd) > >this is how linux works, other flavors of unix either do the same or >something similar > >dougc > > >Doug Chanco >Ultimate Product Development >(800) 678-5266 ext 5426 >1-512-278-5426 (Direct) >[EMAIL PROTECTED] >www.activant.com >------- >u2-users mailing list >[EMAIL PROTECTED] >http://www.u2ug.org/listinfo/u2-users ------- u2-users mailing list [EMAIL PROTECTED] http://www.u2ug.org/listinfo/u2-users
