'\" t
.\"     Title: nologin
.\"    Author: Nicolas François <nicolas.francois@centraliens.net>
.\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
.\"      Date: 06/18/2024
.\"    Manual: System Management Commands
.\"    Source: shadow-utils 4.16.0
.\"  Language: English
.\"
.TH "NOLOGIN" "8" "06/18/2024" "shadow\-utils 4\&.16\&.0" "System Management Commands"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
nologin \- politely refuse a login
.SH "SYNOPSIS"
.HP \w'\fBnologin\fR\ 'u
\fBnologin\fR
.SH "DESCRIPTION"
.PP
The
\fBnologin\fR
command displays a message that an account is not available and exits non\-zero\&. It is intended as a replacement shell field for accounts that have been disabled\&.
.PP
To disable all logins, investigate
\fBnologin\fR(5)\&.
.PP
If
\fBSSH_ORIGINAL_COMMAND\fR
is populated it will be logged\&.
.SH "SEE ALSO"
.PP
\fBlogin\fR(1),
\fBnologin\fR(5)\&.
.SH "HISTORY"
.PP
The
\fBnologin\fR
command appeared in BSD 4\&.4\&.
