{"id":3680,"date":"2022-12-20T17:19:45","date_gmt":"2022-12-20T20:19:45","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/nologin-man8\/"},"modified":"2022-12-20T17:19:45","modified_gmt":"2022-12-20T20:19:45","slug":"nologin-man8","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/nologin-man8\/","title":{"rendered":"NOLOGIN (man8)"},"content":{"rendered":"<h1 align=\"center\">NOLOGIN<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#OPTIONS\">OPTIONS<\/a><br \/> <a href=\"#NOTES\">NOTES<\/a><br \/> <a href=\"#HISTORY\">HISTORY<\/a><br \/> <a href=\"#AUTHORS\">AUTHORS<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#AVAILABILITY\">AVAILABILITY<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">nologin \u2212 politely refuse a login<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>nologin<\/b> [<b>\u2212V<\/b>] [<b>\u2212h<\/b>]<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>nologin<\/b> 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.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If the file \/etc\/nologin.txt exists, nologin displays its contents to the user instead of the default message.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The exit status returned by <b>nologin<\/b> is always 1.<\/p>\n<h2>OPTIONS <a name=\"OPTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212c<\/b>, <b>\u2212\u2212command<\/b> <i>command<\/i> <b><br \/> \u2212\u2212init-file <br \/> \u2212i \u2212\u2212interactive <br \/> \u2212\u2212init-file<\/b> <i>file<\/i> <b><br \/> \u2212i<\/b>, <b>\u2212\u2212interactive <br \/> \u2212l<\/b>, <b>\u2212\u2212login <br \/> \u2212\u2212noprofile <br \/> \u2212\u2212norc <br \/> \u2212\u2212posix <br \/> \u2212\u2212rcfile<\/b> <i>file<\/i> <b><br \/> \u2212r<\/b>, <b>\u2212\u2212restricted<\/b><\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">These shell command-line options are ignored to avoid nologin error.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212h<\/b>, <b>\u2212\u2212help<\/b><\/p>\n<p style=\"margin-left:22%;\">Display help text and exit.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212V<\/b>, <b>\u2212\u2212version<\/b><\/p>\n<p style=\"margin-left:22%;\">Display version information and exit.<\/p>\n<h2>NOTES <a name=\"NOTES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>nologin<\/b> is a per-account way to disable login (usually used for system accounts like http or ftp). <b>nologin<\/b>(8) uses \/etc\/nologin.txt as an optional source for a non-default message, the login access is always refused independently of the file.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>pam_nologin<\/b>(8) PAM module usually prevents all non-root users from logging into the system. <b>pam_nologin<\/b>(8) functionality is controlled by \/var\/run\/nologin or the \/etc\/nologin file.<\/p>\n<h2>HISTORY <a name=\"HISTORY\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The <b>nologin<\/b> command appeared in 4.4BSD.<\/p>\n<h2>AUTHORS <a name=\"AUTHORS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><a href=\"kzak@redhat.com\">Karel Zak<\/a><\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>login<\/b>(1), <b>passwd<\/b>(5), <b>pam_nologin<\/b>(8)<\/p>\n<h2>AVAILABILITY <a name=\"AVAILABILITY\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The nologin command is part of the util-linux package and is available from <a href=\"https:\/\/www.kernel.org\/pub\/linux\/utils\/util-linux\/\">Linux Kernel Archive<\/a>.<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  nologin \u2212 politely refuse a login <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[5,52,4,792],"class_list":["post-3680","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-man8","tag-nologin"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3680","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=3680"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3680\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=3680"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=3680"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=3680"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}