aboutsummaryrefslogtreecommitdiff
path: root/rpm/jellyfin.sudoers
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2024-05-13 14:46:34 -0400
committerB. Stack <bgstack15@gmail.com>2024-05-13 14:46:34 -0400
commit513932b3c8dc2d22bb17fd0680c7461c013de433 (patch)
tree4950284e4bc1c4417d8843db96b730a266463416 /rpm/jellyfin.sudoers
parentDisable non-Windows portable FFmpeg integration (diff)
downloadjellyfin-packaging-513932b3c8dc2d22bb17fd0680c7461c013de433.tar.gz
jellyfin-packaging-513932b3c8dc2d22bb17fd0680c7461c013de433.tar.bz2
jellyfin-packaging-513932b3c8dc2d22bb17fd0680c7461c013de433.zip
add initial research for rpm
Diffstat (limited to 'rpm/jellyfin.sudoers')
-rw-r--r--rpm/jellyfin.sudoers18
1 files changed, 18 insertions, 0 deletions
diff --git a/rpm/jellyfin.sudoers b/rpm/jellyfin.sudoers
new file mode 100644
index 0000000..cebc937
--- /dev/null
+++ b/rpm/jellyfin.sudoers
@@ -0,0 +1,18 @@
+# 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
+
+jellyfin ALL=(ALL) NOPASSWD: RESTARTSERVER_SYSTEMD
+jellyfin ALL=(ALL) NOPASSWD: STARTSERVER_SYSTEMD
+jellyfin ALL=(ALL) NOPASSWD: STOPSERVER_SYSTEMD
+
+Defaults!RESTARTSERVER_SYSTEMD !requiretty
+Defaults!STARTSERVER_SYSTEMD !requiretty
+Defaults!STOPSERVER_SYSTEMD !requiretty
+
+# Allow the server to mount iso images
+jellyfin ALL=(ALL) NOPASSWD: /bin/mount
+jellyfin ALL=(ALL) NOPASSWD: /bin/umount
+
+Defaults:jellyfin !requiretty
bgstack15