From owner-svn-src-all@freebsd.org Wed Apr 15 17:00:29 2020 Return-Path: Delivered-To: svn-src-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A47202BC20C; Wed, 15 Apr 2020 17:00:29 +0000 (UTC) (envelope-from freebsd@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 492TBP2Zqtz45nZ; Wed, 15 Apr 2020 17:00:28 +0000 (UTC) (envelope-from freebsd@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (localhost [127.0.0.1]) by gndrsh.dnsmgr.net (8.13.3/8.13.3) with ESMTP id 03FH0QKv041726; Wed, 15 Apr 2020 10:00:26 -0700 (PDT) (envelope-from freebsd@gndrsh.dnsmgr.net) Received: (from freebsd@localhost) by gndrsh.dnsmgr.net (8.13.3/8.13.3/Submit) id 03FH0QMe041725; Wed, 15 Apr 2020 10:00:26 -0700 (PDT) (envelope-from freebsd) From: "Rodney W. Grimes" Message-Id: <202004151700.03FH0QMe041725@gndrsh.dnsmgr.net> Subject: Re: svn commit: r359967 - head/usr.sbin/nologin In-Reply-To: <202004151313.03FDDkLt026639@repo.freebsd.org> To: Mateusz Piotrowski <0mp@freebsd.org> Date: Wed, 15 Apr 2020 10:00:26 -0700 (PDT) CC: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Reply-To: rgrimes@freebsd.org X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Rspamd-Queue-Id: 492TBP2Zqtz45nZ X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-6.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-1.00)[-0.999,0] X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Apr 2020 17:00:29 -0000 > Author: 0mp (doc,ports committer) > Date: Wed Apr 15 13:13:46 2020 > New Revision: 359967 > URL: https://svnweb.freebsd.org/changeset/base/359967 > > Log: > Document the exit status and the stdout message of nologin(8) > > Reviewed by: debdrup (earlier version) > MFC after: 2 weeks > Differential Revision: https://reviews.freebsd.org/D24196 > > Modified: > head/usr.sbin/nologin/nologin.8 > > Modified: head/usr.sbin/nologin/nologin.8 > ============================================================================== > --- head/usr.sbin/nologin/nologin.8 Wed Apr 15 13:06:55 2020 (r359966) > +++ head/usr.sbin/nologin/nologin.8 Wed Apr 15 13:13:46 2020 (r359967) > @@ -28,7 +28,7 @@ > .\" @(#)nologin.8 8.1 (Berkeley) 6/19/93 > .\" $FreeBSD$ > .\" > -.Dd June 19, 1993 > +.Dd April 15, 2020 > .Dt NOLOGIN 8 > .Os > .Sh NAME > @@ -39,14 +39,31 @@ > .Sh DESCRIPTION > The > .Nm > -utility displays a message that an account is not available and > -exits non-zero. > -It is intended as a replacement shell field for accounts that > +is intended as a replacement shell field for accounts that > have been disabled. > .Pp > +When executed, > +.Nm > +first writes about the login attempt to > +.Xr syslog 3 > +and then a displays a message that an account is not available. This needs some wordsmithing, extra "a" needs removed. and then displays a message that an account is not available. > +.Pp > To disable all logins, > investigate > .Xr nologin 5 . > +.Sh EXIT STATUS > +The > +.Nm > +utility always exits non-zero. > +.Sh EXAMPLES > +Here is a demonstration of executing > +.Nm : > +.Bd -literal -offset 4n > +$ nologin > +This account is currently not available. > +$ tail -n 1 /var/log/messages > +Mar 30 21:53:07 example.org nologin[65992]: Attempted login by beastie on /dev/pts/18 > +.Ed > .Sh SEE ALSO > .Xr login 1 , > .Xr nologin 5 > -- Rod Grimes rgrimes@freebsd.org