Results 1 to 3 of 3
Hey
I tried the above command on my pc. It broadcasts the message passed , but I noticed one thing that during this time( 2min) normal users are not allowed ...
- 05-10-2009 #1
shutdown -k +2 system going down
Hey
I tried the above command on my pc. It broadcasts the message passed , but I noticed one thing that during this time( 2min) normal users are not allowed to login onto the terminal.
- 05-10-2009 #2Linux Newbie
- Join Date
- Mar 2009
- Posts
- 228
That's intended behavior. From the shutdown manpage:
If shutdown is called with a delay, it creates the advisory file /etc/nologin which causes programs such as login(1) to not allow new user logins. Shutdown removes this file if it is stopped before it can signal init (i.e. it is cancelled or something goes wrong). It also removes it before calling init to change the runlevel.
Why would you allow users to log in when the system is shutting down in 2 minutes?
- 05-11-2009 #3
just a prank
Ya actually the k option doesn't shutdown the system , it only boradcast's a message . Root is able to login at that time but not other user's
Only if I could understand the man pages
Registered Linux user #492640
OS: RHEL4,5 ,RH 9,Ubuntu


Reply With Quote