From nobody  Wed May 13 12:57:19 1998
Received: (from nobody@localhost)
          by hub.freebsd.org (8.8.8/8.8.8) id MAA02995;
          Wed, 13 May 1998 12:57:19 -0700 (PDT)
          (envelope-from nobody)
Message-Id: <199805131957.MAA02995@hub.freebsd.org>
Date: Wed, 13 May 1998 12:57:19 -0700 (PDT)
From: claudio@nty.com
To: freebsd-gnats-submit@freebsd.org
Subject: One class with nologin=/etc/nologin: rejects even those who don't belong to that class
X-Send-Pr-Version: www-1.0

>Number:         6624
>Category:       conf
>Synopsis:       One class with nologin=/etc/nologin: rejects even those who don't belong to that class
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 13 13:00:01 PDT 1998
>Closed-Date:    Mon Mar 17 07:05:46 PST 2003
>Last-Modified:  Mon Mar 17 07:05:46 PST 2003
>Originator:     Claudio Eichenberger
>Release:        FreeBSD 2.2.2 and 2.2.6
>Organization:
NTY Consulting
>Environment:
FreeBSD gamma 2.2.2-RELEASE FreeBSD 2.2.2-RELEASE #0: Sat Mar 14 11:35:00 GMT 1998     root@gamma:/usr/src/sys/compile/GAMMA  i386
FreeBSD nty.ch 2.2.6-RELEASE FreeBSD 2.2.6-RELEASE #0: Sat May  9 10:56:41 CEST 1998     root@nty.ch:/usr/src/sys/compile/NTY  i386

>Description:
Situation:
	I created a class 'nolog' in /etc/login.conf created the file
'/etc/nologin' and added 'nolog' to the user 'cei', see beneath.

1st Problem:
	Despite the user 'ecole' hasn't an entry of 'nolog' I cannot
login as user 'ecole' as soon as I tried a login which user 'cei'.
Actually any user gets rejected as soon as I've tried to login with 'cei'.

2nd Problem:
	The file /etc/nologin gets deleted by every boot. 
>How-To-Repeat:
make the following entries:

# cat /etc/login.conf
nolog:\
        :nologin=/etc/nologin:\
        :tc=default:
 
# vipw
cei:pwd:1018:1018:nolog:0:0:Claudio Eichenberger:/home/cei:/bin/csh
ecole:pwd:1021:1021::0:0:Ecole:/home/ecole:/bin/csh
 
# echo 'unfortunatelly you stay out' > /etc/nologin

then:

# telnet -l ecole host		# this works fine
# telnet -l cei   host		# works fine cei gets rejected
# telnet -l ecole host		# DOESN'T work ecole GETS REJECTED
>Fix:

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->davidn 
Responsible-Changed-By: steve 
Responsible-Changed-When: Sun May 24 19:58:26 PDT 1998 
Responsible-Changed-Why:  
David Nugent is our resident login_class guru. 
Responsible-Changed-From-To: davidn->freebsd-bugs 
Responsible-Changed-By: dougb 
Responsible-Changed-When: Fri Mar 14 21:44:53 PST 2003 
Responsible-Changed-Why:  

davidn is no longer with us 

http://www.freebsd.org/cgi/query-pr.cgi?pr=6624 
State-Changed-From-To: open->feedback 
State-Changed-By: roam 
State-Changed-When: Mon Mar 17 07:00:40 PST 2003 
State-Changed-Why:  
Could you please try to reproduce this on a recent FreeBSD system? 
I cannot reproduce it here, on a 4.8-RC system. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=6624 
State-Changed-From-To: feedback->closed 
State-Changed-By: roam 
State-Changed-When: Mon Mar 17 07:04:42 PST 2003 
State-Changed-Why:  
Mail to submitter bounces, and I cannot seem to reproduce the errant 
behavior on a 4.8-RC system; looks like this has been fixed somewhere 
along the road. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=6624 
>Unformatted:
