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
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
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
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
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
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
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
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
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
9 matches
Mail list logo