Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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.

share|improve this question
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

1 Answer 1

up vote 1 down vote accepted

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).

share|improve this answer
    
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

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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