summaryrefslogtreecommitdiffstats
path: root/login-utils/nologin.8.adoc
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 19:10:49 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 19:10:49 +0000
commitcfe5e3905201349e9cf3f95d52ff4bd100bde37d (patch)
treed0baf160cbee3195249d095f85e52d20c21acf02 /login-utils/nologin.8.adoc
parentInitial commit. (diff)
downloadutil-linux-cfe5e3905201349e9cf3f95d52ff4bd100bde37d.tar.xz
util-linux-cfe5e3905201349e9cf3f95d52ff4bd100bde37d.zip
Adding upstream version 2.39.3.upstream/2.39.3
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'login-utils/nologin.8.adoc')
-rw-r--r--login-utils/nologin.8.adoc79
1 files changed, 79 insertions, 0 deletions
diff --git a/login-utils/nologin.8.adoc b/login-utils/nologin.8.adoc
new file mode 100644
index 0000000..6be978b
--- /dev/null
+++ b/login-utils/nologin.8.adoc
@@ -0,0 +1,79 @@
+//po4a: entry man manual
+= nologin(8)
+:doctype: manpage
+:man manual: System Administration
+:man source: util-linux {release-version}
+:page-layout: base
+:command: nologin
+
+== NAME
+
+nologin - politely refuse a login
+
+== SYNOPSIS
+
+*nologin* [*-V*] [*-h*]
+
+== DESCRIPTION
+
+*nologin* displays a message that an account is not available and exits non-zero. It is intended as a replacement shell field to deny login access to an account.
+
+If the file _/etc/nologin.txt_ exists, *nologin* displays its contents to the user instead of the default message.
+
+The exit status returned by *nologin* is always 1.
+
+== OPTIONS
+
+*-c*, *--command* _command_
+
+*--init-file*
+
+*-i* *--interactive*
+
+*--init-file* _file_
+
+*-i*, *--interactive*
+
+*-l*, *--login*
+
+*--noprofile*
+
+*--norc*
+
+*--posix*
+
+*--rcfile* _file_
+
+*-r*, *--restricted*
+
+These shell command-line options are ignored to avoid *nologin* error.
+
+include::man-common/help-version.adoc[]
+
+== NOTES
+
+*nologin* is a per-account way to disable login (usually used for system accounts like http or ftp). *nologin* uses _/etc/nologin.txt_ as an optional source for a non-default message, the login access is always refused independently of the file.
+
+*pam_nologin*(8) PAM module usually prevents all non-root users from logging into the system. *pam_nologin*(8) functionality is controlled by _/var/run/nologin_ or the _/etc/nologin_ file.
+
+== HISTORY
+
+The *nologin* command appeared in 4.4BSD.
+
+== AUTHORS
+
+mailto:kzak@redhat.com[Karel Zak]
+
+== SEE ALSO
+
+*login*(1),
+*passwd*(5),
+*pam_nologin*(8)
+
+include::man-common/bugreports.adoc[]
+
+include::man-common/footer.adoc[]
+
+ifdef::translation[]
+include::man-common/translation.adoc[]
+endif::[]