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