Page 1 of 1
Protect shutdown/reboot
Posted: Thursday 29 July 2021 19:41
by sciurius
I have domiticz running on a server. Under the Settings menu, I can shutdown and reboot the system. This is, of course, not desired for a server.
Can I somehow protect these menu items from being triggered by accident?
I can set Light/Switch Protection but there's no such thing for Shutdown/Reboot.
Re: Protect shutdown/reboot
Posted: Thursday 29 July 2021 21:28
by waltervl
If you setup users only an admin can shutdown/reboot the server. Uses and viewers cannot.
https://www.domoticz.com/wiki/User_Management
Re: Protect shutdown/reboot
Posted: Friday 30 July 2021 22:32
by FireWizard
Hi, @sciurius,
Perhaps this solution is also for you:
See:
viewtopic.php?t=9501
Regards
Re: Protect shutdown/reboot
Posted: Sunday 01 August 2021 16:54
by sciurius
Thanks, @FireWizard. This may be a better approach.
(Although I agree with one of the last posters who suggest '[to] change the functionality of the Shutdown system so that it just stops the Domoticz service rather than shutdown the entire Pi.')
Re: Protect shutdown/reboot
Posted: Sunday 01 August 2021 20:43
by EddyG
All those commands (reboot / shutdown etc...) are symlinks to /sbin/systemctl
Just delete the symlinks or point the symlinks to something else and in the future use
Code: Select all
/sbin/systemctl reboot
/sbin/systemctl shutdown
See