JEr4t6kJC3
Cadet
- Joined
- Apr 30, 2022
- Messages
- 5
Hi,
I'm trying to let my HomeAssistant Pi remotely shut down my TrueNAS Scale server.
I would like to create a user with very specific rights to perform only shutdown without a password prompt. (And do auth through public/private key).
Obviously editing the visudo file will get reset upon reboot. And the functionality is not built into the UI.
Reddit advised that I could create a startup script that edited the visudo on every boot. However this feels like an error prone way of doing things.
Does anyone know how to persistantly edit the visudo or any other config that'll solve my problem?
Thanks!
I'm trying to let my HomeAssistant Pi remotely shut down my TrueNAS Scale server.
I would like to create a user with very specific rights to perform only shutdown without a password prompt. (And do auth through public/private key).
Obviously editing the visudo file will get reset upon reboot. And the functionality is not built into the UI.
Reddit advised that I could create a startup script that edited the visudo on every boot. However this feels like an error prone way of doing things.
Does anyone know how to persistantly edit the visudo or any other config that'll solve my problem?
Thanks!