molly-guard fails to prevent shutdown with params
Bug #120786 reported by
Aaron C. de Bruyn
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
molly-guard (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: molly-guard
If you run 'shutdown' as root, mollyguard behaves appropriately.
If you run something like 'shutdown -h now' mollyguard shuts down the system without asking.
From my understanding, mollyguard is supposed to prevent remote connections from shutting down, rebooting, or halting the system without asking for the hostname first.
To post a comment you must log in.
Plain 'ol shutdown:
root@argus:/# shutdown
molly-guard: SSH session detected!
Please type in hostname of the machine to shutdown:
Good thing I asked; I won't shutdown argus ...
Shutdown with params:
root@argus:/# shutdown -h now
Broadcast message from root@argus
(/dev/ pts/0) at 15:49 ...
The system is going down for halt NOW!
root@argus:/# Connection to 192.168.42.222 closed by remote host.
Connection to 192.168.42.222 closed.