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