Package: finit
Version: 4.7-1+b1
Severity: wishlist

Dear Maintainer,

I would like to request a change to the location of the nologin file
used by finit to prevent users from logging in while switching
runlevels. The current file location is /etc/nologin, but I believe it
would be more suitable to move it to either /run/nologin or
/var/run/nologin.

There are two issues with the current file location:

1. The file remains on the filesystem after a reboot, which can make the
   system inaccessible to users if another init system is booted. For
   example, initscripts use /run/nologin in bootmisc.sh and rmnologin
   scripts, and /etc/nologin is not removed during boot.

2. It is not desirable to touch /etc as it may reside on a read-only filesystem.

Fortunately, it is possible to override the file location by defining
FINIT_NOLOGIN_PATH during the build process. Additionally, pam_nologin
is already configured to check both /var/run/nologin and /etc/nologin,
so no further changes are required.

I would appreciate it if you could consider this change.

Thank you for your attention to this matter.

Best regards,
  Alexander

Reply via email to