From nobody@FreeBSD.org  Wed Jan 30 20:52:50 2002
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id DE2E237B400
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 30 Jan 2002 20:52:49 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id g0V4qn194875;
	Wed, 30 Jan 2002 20:52:49 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200201310452.g0V4qn194875@freefall.freebsd.org>
Date: Wed, 30 Jan 2002 20:52:49 -0800 (PST)
From: Christopher Schulte <schulte+freebsd@nospam.schulte.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: bug in sshd manpage ( sshd and /var/run/nologin )
X-Send-Pr-Version: www-1.0

>Number:         34479
>Category:       docs
>Synopsis:       bug in sshd manpage ( sshd and /var/run/nologin )
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 30 21:00:00 PST 2002
>Closed-Date:    Sun Feb 10 00:47:20 PST 2002
>Last-Modified:  Sun Feb 10 00:48:05 PST 2002
>Originator:     Christopher Schulte
>Release:        FreeBSD 4.4, 4.5 / OpenSSH 2.3.0, 2.9.0
>Organization:
>Environment:
FreeBSD futon.schulte.org 4.5-RELEASE FreeBSD 4.5-RELEASE #0: Wed Jan 30 01:46:27 CST 2002

sshd version OpenSSH_2.9 FreeBSD localisations 20011202
>Description:
There appears to be a bug in the manpage of sshd(8).  It tells us:

When a user successfully logs in, sshd does the following:
[snip 1,2]

3.   Checks /etc/nologin and /var/run/nologin; if one exists, it
                prints the contents and quits (unless root).


This is not the case, as I documented here:

http://docs.freebsd.org/cgi/getmsg.cgi?fetch=277364+0+/usr/local/www/db/text/2002/freebsd-security/20020127.freebsd-security
>How-To-Repeat:
touch /var/run/nologin and try to ssh in as non-root.

>Fix:
Edit the man page to tell us /var/run/nologin only works if 'UseLogin' is defined, as suggested by this mailing list message:

http://docs.freebsd.org/cgi/getmsg.cgi?fetch=280283+0+/usr/local/www/db/text/2002/freebsd-security/20020127.freebsd-security
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: dd 
State-Changed-When: Sun Feb 10 00:47:20 PST 2002 
State-Changed-Why:  
OpenSSH is contributed software.  Please bring this up with the 
respective maintainers (unless this issue is FreeBSD-specific, but I 
don't think it is). 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=34479 
>Unformatted:
