Nologin Linux

nologin(8) – Linux manual page – Michael Kerrisk

nologin(8) 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.

http://man7.org/linux/man-pages/man8/nologin.8.html

Creating the /etc/nologin File (System Administration …

Creating the /etc/nologin File. Create this file to disallow user logins and notify users when a system will be unavailable for an extended period of time because of a system shutdown or routine maintenance.

https://docs.oracle.com/cd/E19683-01/806-4078/6jd6cjs3v/index.html

Howto: Linux shell restricting access – nixCraft

The best way to put Linux shell access restriction is to use special shell called nologin, which politely refuse a login. It 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 or have other user level access such as ftp, pop3, smtp etc.

https://www.cyberciti.biz/tips/howto-linux-shell-restricting-access.html

How to Block or Disable Normal User Logins in Linux

How to Block User Logins Using nologin Shell. This method works a little differently: it only blocks a user from accessing a shell. But he or she can log on to the system via programs such as ftp that do not necessarily require a shell for the user to connect to a system.. Additionally, it can allow you to block shell access to specific users in special scenarios.

https://www.tecmint.com/block-or-disable-normal-user-logins-in-linux/

pam_nologin(8) – Linux man page

pam_nologin – Prevent non-root users from login Synopsis. pam_nologin.so [file=/path/nologin] [successok] Description. pam_nologin is a PAM module that prevents users from logging into the system when /etc/nologin exists. The contents of the /etc/nologin file are displayed to the user.

https://linux.die.net/man/8/pam_nologin

pam_nologin(8) – Linux manual page – man7.org

PAM_NOLOGIN(8) Linux-PAM Manual PAM_NOLOGIN(8) NAME top pam_nologin – Prevent non-root users from login SYNOPSIS top pam_nologin.so [file=/path/nologin] [successok] DESCRIPTION top pam_nologin is a PAM module that prevents users from logging into the system when /var/run/nologin or /etc/nologin exists.

http://man7.org/linux/man-pages/man8/pam_nologin.8.html

nologin – Unix, Linux Command – Tutorialspoint

nologin 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. If the file /etc/nologin.txt exists, nologin displays its contents to the user instead of the default message …

https://www.tutorialspoint.com/unix_commands/nologin.htm

Disabling User Logins to Linux System – LinuxConfig.org

The difference between /bin/true and /usr/sbin/nologin is that nologin prints message: $ /usr/sbin/nologin This account is currently not available. Some Linux distributions may not have /usr/sbin/nologin available. Check /etc/shells to see what available for your system.

https://linuxconfig.org/disabling-user-logins-to-linux-system

Leave a Reply