nologin
Nologin is a program and a special login shell used on many Unix-like systems to prevent interactive logins for certain user accounts. On Linux, the executable is typically /sbin/nologin or /usr/sbin/nologin, and it is commonly assigned as the login shell for system users or accounts that should not have a normal interactive session.
When a user with nologin as their login shell attempts to log in, the login process runs
Usage and administration: To disable an account, administrators set the user’s login shell to nologin using
/etc/nologin is another mechanism used by some systems. If this file exists, most login programs deny non-root
Notes: Paths and exact behavior can vary across Unix-like systems. Some distributions may treat root logins