Pretty straight-forward. Does SSH ignore the nologin file created by shutdown -k TIME?

Using PAM Auth to sync password database to users; if that makes a difference.

  • 4
    What do you expect from shutdown -k? On Linux the man page says: -k Don't really shutdown; only send the warning messages to everybody. – klapaucius Aug 31 '11 at 13:32
  • Yeah I guess the point is to not allow users to login anymore. But it seems like on my system, via SSH, they still can login. – fadmcrank Aug 31 '11 at 22:20

Two problems, shutdown -k doesn't actually shutdown. Also shutdown ONLY creates the nologin file if you specify a shutdown time that is in the future (not now).

  • Yeah I know. But it seems like the SSHD or it's AUTH is ignoring nologin because I still have people login in. – fadmcrank Aug 31 '11 at 22:22
  • 1
    I guess I'm a little confused, did you touch that file? Or you did a shutdown now? shutdown -k won't create the file so it isn't there for sshd to ignore. – polynomial Aug 31 '11 at 22:26
  • Ignore my first comment. Because as @polynomial said, only shutdown creates the nologin file. And to all, sorry for taking so long to mark this one Answered. – fadmcrank Apr 17 '12 at 6:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.