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=blo

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

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 su

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 command

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 Arch

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 i

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