Re: temporarily disable shutdown

2015-03-31 Thread David Wright
Quoting Matthias Bodenbinder (matth...@bodenbinder.de): Am 29.03.2015 um 17:35 schrieb Michael Biebl: Am 29.03.2015 um 11:42 schrieb Matthias Bodenbinder: Am 28.03.2015 um 18:51 schrieb Michael Biebl: You can run something like systemd-inhibit --what=shutdown --mode=block /bin/sleep

Re: temporarily disable shutdown

2015-03-31 Thread Matthias Bodenbinder
Am 29.03.2015 um 17:35 schrieb Michael Biebl: Am 29.03.2015 um 11:42 schrieb Matthias Bodenbinder: Am 28.03.2015 um 18:51 schrieb Michael Biebl: You can run something like systemd-inhibit --what=shutdown --mode=block /bin/sleep 3600 to block shutdown for 1h. This does NOT work. I tested

Re: temporarily disable shutdown

2015-03-29 Thread David Wright
Quoting Matthias Bodenbinder (matth...@bodenbinder.de): [...] And even on the commandline a poweroff is still successfully executed. You haven't said whether the commandline is being typed on a console VC, or remotely. It makes a big difference. For example: jessiebox ~$ ls -l /sbin/poweroff

Re: temporarily disable shutdown

2015-03-29 Thread Michael Biebl
Am 29.03.2015 um 11:42 schrieb Matthias Bodenbinder: Am 28.03.2015 um 18:51 schrieb Michael Biebl: You can run something like systemd-inhibit --what=shutdown --mode=block /bin/sleep 3600 to block shutdown for 1h. This does NOT work. I tested it with debian testing. Are you sure you are

Re: temporarily disable shutdown

2015-03-29 Thread Matthias Bodenbinder
Am 28.03.2015 um 18:51 schrieb Michael Biebl: You can run something like systemd-inhibit --what=shutdown --mode=block /bin/sleep 3600 to block shutdown for 1h. This does NOT work. I tested it with debian testing. It does not prevent shutdown through hte KDE GUI. And even on the commandline

Re: temporarily disable shutdown

2015-03-29 Thread Matthias Bodenbinder
Hello Michael, that is a very good suggestion. Thank you. But I also have debian stable. Do you have any idea for debain stable as well? Matthias -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

temporarily disable shutdown

2015-03-28 Thread Matthias Bodenbinder
Hi, how can I temporarily disable shutdown or reboot? My use case is the following: I create a file /tmp/NO_SHUTDOWN. If that file exists, a shutdown or reboot should not be possible. I have molly-guard installed and a script in /etc/molly-guard/run.d/ tests the existence of that file

Re: temporarily disable shutdown

2015-03-28 Thread Mr Queue
It's as simple as correcting user/group permissions. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/5516e78a.1020...@mrqueue.com

Re: temporarily disable shutdown

2015-03-28 Thread Michael Biebl
Am 28.03.2015 um 18:29 schrieb Matthias Bodenbinder: Hi, how can I temporarily disable shutdown or reboot? My use case is the following: I create a file /tmp/NO_SHUTDOWN. If that file exists, a shutdown or reboot should not be possible. I have molly-guard installed and a script