Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve privileges #6

Closed
gebn opened this issue Jan 9, 2019 · 1 comment
Closed

Resolve privileges #6

gebn opened this issue Jan 9, 2019 · 1 comment

Comments

@gebn
Copy link
Owner

gebn commented Jan 9, 2019

How can we avoid running as root?

@gebn
Copy link
Owner Author

gebn commented Jan 9, 2019

Options:

  • Run as root.
    • Nope, sorry.
  • Modify Plex to run as a user service, and loginctl enable-linger plex.
    • This requires invasive changes to the way Plex works. Every upgrade would be made harder.
  • Use Polkit
    • This is the blessed solution, however Debian is stuck on v0.105 from 2012, which doesn't allow scoping systemctl access to specific users, units and actions. Such functionality was only committed in 2015. This would be almost as bad as running as root.
  • Use sudoers to allow the plex user to start and stop the plexmediaserver.service unit.
    • Accepted solution for now. Review if Polkit is updated, to >=v0.106.

@gebn gebn closed this as completed in e0febd8 Jan 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant