Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
50461af7
Commit
50461af7
authored
Jul 14, 2025
by
Ivan Mazhukin
Committed by
Vitaly Lipatov
Jul 19, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm repack jellyfin: remove sudoers, add polkit rule instead (eterbug #18411)
parent
d7cab902
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
jellyfin-server.sh
repack.d/jellyfin-server.sh
+15
-1
No files found.
repack.d/jellyfin-server.sh
View file @
50461af7
...
@@ -24,7 +24,21 @@ subst 's|JELLYFIN_CONFIG_DIR="/etc/jellyfin"|JELLYFIN_CONFIG_DIR="/var/lib/jelly
...
@@ -24,7 +24,21 @@ subst 's|JELLYFIN_CONFIG_DIR="/etc/jellyfin"|JELLYFIN_CONFIG_DIR="/var/lib/jelly
# /etc/sudoers.d/jellyfin-sudoers:4:95: duplicate Cmnd_Alias "STOPSERVER_SYSTEMD", previously defined at /etc/sudoers.d/jellyfin-sudoers:4:12
# /etc/sudoers.d/jellyfin-sudoers:4:95: duplicate Cmnd_Alias "STOPSERVER_SYSTEMD", previously defined at /etc/sudoers.d/jellyfin-sudoers:4:12
# Cmnd_Alias STOPSERVER_SYSTEMD = /usr/bin/systemctl stop jellyfin, /bin/systemctl stop jellyfin
# Cmnd_Alias STOPSERVER_SYSTEMD = /usr/bin/systemctl stop jellyfin, /bin/systemctl stop jellyfin
subst
's|, /bin/systemctl.*||'
$BUILDROOT
/etc/sudoers.d/jellyfin-sudoers
# Remove sudoers file - switching to Polkit
remove_file /etc/sudoers.d/jellyfin-sudoers
# Create Polkit rule allowing jellyfin user to manage jellyfin.service
cat
<<
EOF
|create_file /usr/share/polkit-1/rules.d/50.jellyfin-manage-jellyfin.rules
polkit.addRule(function(action, subject) {
if (
action.id == "org.freedesktop.systemd1.manage-units" &&
action.lookup("unit") == "jellyfin.service" &&
subject.user == "jellyfin"
) {
return polkit.Result.YES;
}
});
EOF
# This is required for ALT systems
# This is required for ALT systems
if
[
"
$(
epm print info
-s
)
"
=
"alt"
]
;
then
if
[
"
$(
epm print info
-s
)
"
=
"alt"
]
;
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment