2019-01-05 03:14:24 -07:00
|
|
|
# Allow jellyfin group to start, stop and restart itself
|
|
|
|
Cmnd_Alias RESTARTSERVER_SYSTEMD = /usr/bin/systemctl restart jellyfin, /bin/systemctl restart jellyfin
|
|
|
|
Cmnd_Alias STARTSERVER_SYSTEMD = /usr/bin/systemctl start jellyfin, /bin/systemctl start jellyfin
|
|
|
|
Cmnd_Alias STOPSERVER_SYSTEMD = /usr/bin/systemctl stop jellyfin, /bin/systemctl stop jellyfin
|
|
|
|
|
|
|
|
|
2019-02-03 22:27:00 -07:00
|
|
|
jellyfin ALL=(ALL) NOPASSWD: RESTARTSERVER_SYSTEMD
|
|
|
|
jellyfin ALL=(ALL) NOPASSWD: STARTSERVER_SYSTEMD
|
|
|
|
jellyfin ALL=(ALL) NOPASSWD: STOPSERVER_SYSTEMD
|
2019-01-05 03:14:24 -07:00
|
|
|
|
|
|
|
Defaults!RESTARTSERVER_SYSTEMD !requiretty
|
|
|
|
Defaults!STARTSERVER_SYSTEMD !requiretty
|
|
|
|
Defaults!STOPSERVER_SYSTEMD !requiretty
|
|
|
|
|
2019-02-06 07:33:14 -07:00
|
|
|
# Allow the server to mount iso images
|
|
|
|
jellyfin ALL=(ALL) NOPASSWD: /bin/mount
|
|
|
|
jellyfin ALL=(ALL) NOPASSWD: /bin/umount
|
2019-01-05 03:14:24 -07:00
|
|
|
|
2019-02-03 22:27:00 -07:00
|
|
|
Defaults:jellyfin !requiretty
|