molly-guard fails to prevent shutdown with params

Bug #120786 reported by Aaron C. de Bruyn
4
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.

Revision history for this message
Aaron C. de Bruyn (darkpixel2k) wrote :

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.

Revision history for this message
Mathijs (mdenburger) wrote :

This seems to be fixed in Hardy.

Revision history for this message
Aaron C. de Bruyn (darkpixel2k) wrote :

That is correct, however under older versions this is still broken and needs to be fixed.

Revision history for this message
Aaron C. de Bruyn (darkpixel2k) wrote :

It's been well over a year and the bug hasn't even been triaged.
I'll just mark it as invalid since Gutsy will be out of support before this gets fixed.

Changed in molly-guard:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.