Jump to content

Fix restart.sh On Debian 8


Recommended Posts

Posted

Hy all !!!

 

Today I fixed my restart.sh script on emby and I want to share for all users who have the same problem :)

 

So first visit this : 

 

https://github.com/MediaBrowser/Wiki/wiki/Linux-Troubleshooting-Guide-and-FAQ

 

first check that /usr/lib/emby-server/restart.sh is executable with : 

 

> ls -alh /usr/lib/emby-server/restart.sh

 

 

Then I execute thoose commands :

 

>apt install sudo (not installed yet for me :/)

 

> chmod 0640 /etc/sudoers.d/emby

> chmod 0640 /etc/sudoers

> usermod -a -G emby $USER_NAME (Where $USER_NAME is equal to your username)

> visudo 

> $USER_NAME  ALL=(ALL) NOPASSWD: /etc/init.d/emby-server (UNDER # User alias specification line) This will allow this command only for the $USER_NAME user.

> /etc/init.d/sudo restart to apply modification

 

Then hit the restart button on the emby web interface and it work's :)

 

 

This modification is effective if you're running emby as a non-root user.

 

To do that, just edit this file : 

 

> /etc/emby-server.conf and modify this line (delete the '#" char and just put your name behind '=' without sapce' : 

 

#EMBY_USER=       #$EMBY_USER, username to run Emby under, the default is emby

 

 

 

@@Luke : Could make a script or something like that to do this modification when a custome want to change the user who is running emby ? I know this is hard beacause you have to check i f sudo is installed and if yes so you have to add the line on the correct line etc... but this will help a lot of user I think ;). Maybe be you can add this directly on the emby web interface. This will be awesome !!! :D

 

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...