Package: molly-guard
Version: 0.2.1-1
Severity: wishlist

It would be great if molly-guard could also shield the poweroff command
from being inadvertedly launched remotely. I might be wrong but I think
this should be easy to implement by modifying
/usr/share/molly-guard/shutdown like this:
------------------------------------------------------
--- shutdown    2006-11-30 14:56:30.000000000 +0100
+++ shutdown    2006-11-30 14:56:44.000000000 +0100
@@ -15,7 +15,7 @@
 EXEC="/sbin/$CMD"
 
 case "$CMD" in
-  halt|reboot|shutdown)
+  halt|poweroff|reboot|shutdown)
     if [ ! -f $EXEC ]; then
       echo "E: $ME: not a regular file: $EXEC" >&2
       exit 4
------------------------------------------------------

and then adding a symlink in /usr/sbin like this:

cd /usr/sbin
ln -s ../share/molly-guard/shutdown poweroff

Greetings,
      Michel

-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (650, 'testing'), (600, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages molly-guard depends on:
ii  sysvinit                     2.86.ds1-35 System-V-like init utilities

molly-guard recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to