Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 May 1998 12:57:19 -0700 (PDT)
From:      claudio@nty.com
To:        freebsd-gnats-submit@FreeBSD.ORG
Subject:   conf/6624: One class with nologin=/etc/nologin: rejects even those who don't belong to that class
Message-ID:  <199805131957.MAA02995@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 13 13:00:01 PDT 1998
>Last-Modified:
>Originator:     Claudio Eichenberger
>Organization:
NTY Consulting
>Release:        FreeBSD 2.2.2 and 2.2.6
>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:

>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199805131957.MAA02995>