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.
Protect shutdown/reboot Topic is solved
Moderators: leecollings, remb0
- waltervl
- Posts: 6690
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2025.1
- Location: NL
- Contact:
Re: Protect shutdown/reboot
If you setup users only an admin can shutdown/reboot the server. Uses and viewers cannot.
https://www.domoticz.com/wiki/User_Management
https://www.domoticz.com/wiki/User_Management
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
- FireWizard
- Posts: 1968
- Joined: Tuesday 25 December 2018 12:11
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Voorthuizen (NL)
- Contact:
-
sciurius
- Posts: 55
- Joined: Monday 26 July 2021 16:39
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2021.1
- Location: NL
- Contact:
Re: Protect shutdown/reboot
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.')
(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
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
See
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
Code: Select all
/sbin/systemctl --helpWho is online
Users browsing this forum: eddieb and 1 guest