nologin(5)
โจ nologin(5) โจ
okay bestie so this is a page from the File Formats Manual, and it's about a little file that goes hard ๐ . it's giving tiny file, massive consequences. no cap.
๐ธ NAME ๐ธ
nologin โ the way to stop unprivileged users from logging into the system ๐ซ๐ซถ
๐ DESCRIPTION ๐
okay so here's the tea. if the file /etc/nologin exists and is readable, then login(1) is gonna be like "nope, root only" โ it will allow access only to root. everybody else? their logins get refused, periodt. ๐ญ
and it's not even a silent rejection, which is honestly so considerate of it. other users get shown the contents of this file when they try to log in. so yes, /etc/nologin is literally a little note you leave for everyone. iconic behavior fr fr. ๐
the whole point? it's a simple way of temporarily disabling all unprivileged logins. like a "we're closed for a sec, don't @ me" sign but for your whole machine. very main character energy for a file that's usually empty. ๐
โจ reminder: it has to exist and be readable for any of this to kick in. no file, no vibe check.
๐ FILES ๐
/etc/nologin๐
๐ฆ SEE ALSO ๐ฆ
and that's the whole thing!! short page, big power. mwah ๐
<cute sign-off>this lil legend lives in Linux man-pages 6.20, dated 2025-05-17 ๐ thanks for reading bestie, go forth and โจ know your system โจ</cute sign-off>
๐ฆ where this page comes from
- arch rolling: man-pages 6.20-1 ยท BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
- nixpkgs unstable: man-pages 6.20
- ๐ the page's license: GPL-2.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms