One of the issues for system administrators is how to keep non-superusers from logging
in to a system while system configuration or system maintenance is underway.
/etc/nologin file and the NOLOGIN variable in the /etc/default/security file.
If /etc/nologin exists and NOLOGIN=1, nonsuperusers are barred from logging in.
What they will see is a system-generated message (Only...security) followed by the contents of /etc/nologin.
1) Create or edit the file /etc/nologin. It can be empty, but users might appreciate some information on why the system is unavailable.
2) Edit the file /etc/default/security and set the NOLOGIN line to NOLOGIN=1.
in to a system while system configuration or system maintenance is underway.
/etc/nologin file and the NOLOGIN variable in the /etc/default/security file.
If /etc/nologin exists and NOLOGIN=1, nonsuperusers are barred from logging in.
What they will see is a system-generated message (Only...security) followed by the contents of /etc/nologin.
1) Create or edit the file /etc/nologin. It can be empty, but users might appreciate some information on why the system is unavailable.
2) Edit the file /etc/default/security and set the NOLOGIN line to NOLOGIN=1.
No comments:
Post a Comment