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