mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-08 12:28:19 +02:00
Remove mount and unmount permissions for jellyfin group from sudoers
Authored-by: Shadowghost <Ghost_of_Stone@web.de>
Merged-by: Claus Vium <cvium@users.noreply.github.com>
Original-merge: 9cebdfdec0
33 lines
1.5 KiB
Text
33 lines
1.5 KiB
Text
#Allow jellyfin group to start, stop and restart itself
|
|
Cmnd_Alias RESTARTSERVER_SYSV = /sbin/service jellyfin restart, /usr/sbin/service jellyfin restart
|
|
Cmnd_Alias STARTSERVER_SYSV = /sbin/service jellyfin start, /usr/sbin/service jellyfin start
|
|
Cmnd_Alias STOPSERVER_SYSV = /sbin/service jellyfin stop, /usr/sbin/service jellyfin stop
|
|
Cmnd_Alias RESTARTSERVER_SYSTEMD = /usr/bin/systemd-run systemctl restart jellyfin
|
|
Cmnd_Alias STARTSERVER_SYSTEMD = /usr/bin/systemd-run systemctl start jellyfin
|
|
Cmnd_Alias STOPSERVER_SYSTEMD = /usr/bin/systemd-run systemctl stop jellyfin
|
|
Cmnd_Alias RESTARTSERVER_INITD = /etc/init.d/jellyfin restart
|
|
Cmnd_Alias STARTSERVER_INITD = /etc/init.d/jellyfin start
|
|
Cmnd_Alias STOPSERVER_INITD = /etc/init.d/jellyfin stop
|
|
|
|
|
|
jellyfin ALL=(ALL) NOPASSWD: RESTARTSERVER_SYSV
|
|
jellyfin ALL=(ALL) NOPASSWD: STARTSERVER_SYSV
|
|
jellyfin ALL=(ALL) NOPASSWD: STOPSERVER_SYSV
|
|
jellyfin ALL=(ALL) NOPASSWD: RESTARTSERVER_SYSTEMD
|
|
jellyfin ALL=(ALL) NOPASSWD: STARTSERVER_SYSTEMD
|
|
jellyfin ALL=(ALL) NOPASSWD: STOPSERVER_SYSTEMD
|
|
jellyfin ALL=(ALL) NOPASSWD: RESTARTSERVER_INITD
|
|
jellyfin ALL=(ALL) NOPASSWD: STARTSERVER_INITD
|
|
jellyfin ALL=(ALL) NOPASSWD: STOPSERVER_INITD
|
|
|
|
Defaults!RESTARTSERVER_SYSV !requiretty
|
|
Defaults!STARTSERVER_SYSV !requiretty
|
|
Defaults!STOPSERVER_SYSV !requiretty
|
|
Defaults!RESTARTSERVER_SYSTEMD !requiretty
|
|
Defaults!STARTSERVER_SYSTEMD !requiretty
|
|
Defaults!STOPSERVER_SYSTEMD !requiretty
|
|
Defaults!RESTARTSERVER_INITD !requiretty
|
|
Defaults!STARTSERVER_INITD !requiretty
|
|
Defaults!STOPSERVER_INITD !requiretty
|
|
|
|
Defaults:jellyfin !requiretty
|