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