9d84b2
.\"	$OpenBSD: nologin.8,v 1.8 1999/06/04 02:45:19 aaron Exp $
9d84b2
.\"	$NetBSD: nologin.8,v 1.3 1995/03/18 14:59:09 cgd Exp $
9d84b2
.\"
9d84b2
.\" Copyright (c) 1993
9d84b2
.\"	The Regents of the University of California.  All rights reserved.
9d84b2
.\"
9d84b2
.\" Redistribution and use in source and binary forms, with or without
9d84b2
.\" modification, are permitted provided that the following conditions
9d84b2
.\" are met:
9d84b2
.\" 1. Redistributions of source code must retain the above copyright
9d84b2
.\"    notice, this list of conditions and the following disclaimer.
9d84b2
.\" 2. Redistributions in binary form must reproduce the above copyright
9d84b2
.\"    notice, this list of conditions and the following disclaimer in the
9d84b2
.\"    documentation and/or other materials provided with the distribution.
9d84b2
.\" 3. All advertising materials mentioning features or use of this software
9d84b2
.\"    must display the following acknowledgement:
9d84b2
.\"	This product includes software developed by the University of
9d84b2
.\"	California, Berkeley and its contributors.
9d84b2
.\" 4. Neither the name of the University nor the names of its contributors
9d84b2
.\"    may be used to endorse or promote products derived from this software
9d84b2
.\"    without specific prior written permission.
9d84b2
.\"
9d84b2
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
9d84b2
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
9d84b2
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
9d84b2
.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
9d84b2
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
9d84b2
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
9d84b2
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
9d84b2
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
9d84b2
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
9d84b2
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
9d84b2
.\" SUCH DAMAGE.
9d84b2
.\"
9d84b2
.\"     @(#)nologin.8	8.1 (Berkeley) 6/19/93
9d84b2
.\"
9d84b2
.Dd February 15, 1997
9d84b2
.Dt NOLOGIN 8
9d84b2
.Os
9d84b2
.Sh NAME
9d84b2
.Nm nologin
9d84b2
.Nd politely refuse a login
9d84b2
.Sh SYNOPSIS
9d84b2
.Nm nologin
9d84b2
.Sh DESCRIPTION
9d84b2
.Nm
9d84b2
displays a message that an account is not available and
9d84b2
exits non-zero.
9d84b2
It is intended as a replacement shell field for accounts that
9d84b2
have been disabled.
9d84b2
.Pp
9d84b2
If the file
9d84b2
.Pa /etc/nologin.txt
9d84b2
exists,
9d84b2
.Nm
9d84b2
displays its contents to the user instead of the default message.
9d84b2
.Sh SEE ALSO
9d84b2
.Xr login 1
9d84b2
.Sh HISTORY
9d84b2
The
9d84b2
.Nm
9d84b2
command appeared in
9d84b2
.Bx 4.4 .