You are not logged in.

#1 2012-07-10 22:54:57

brotatos
Member
Registered: 2011-12-25
Posts: 37

[SOLVED] Can't Change Sickbeard's User

I'm trying to change the user that sickbeard starts with to root by modifying the sickbeard file.

However, after I execute

sudo systemctl daemon-reload

and restart sickbeard.service, it's still run as the user "sickbeard" according to htop.

EDIT: I changed the service file to User=root but it still doesn't seem to change anything.

Last edited by brotatos (2012-07-16 01:48:37)

Offline

#2 2012-07-14 04:00:28

OrionFyre
Member
Registered: 2008-03-16
Posts: 68

Re: [SOLVED] Can't Change Sickbeard's User

What reason do you have for wanting to run this software as root? <obligatory pronouncements on the danger of running software as root>

Is this because of some file permissions trouble?

Offline

#3 2012-07-14 06:30:01

brotatos
Member
Registered: 2011-12-25
Posts: 37

Re: [SOLVED] Can't Change Sickbeard's User

Yes, file permissions trouble. I tried creating a group called "sickbeard" and putting the user sickbeard and my user in it then chown'ing the relative folders to :sickbeard. However, that didn't seem to work either.

Offline

#4 2012-07-14 09:39:03

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: [SOLVED] Can't Change Sickbeard's User

the user needs +x on any parent folders too. Running it as root is NOT a valid 'fix'.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#5 2012-07-14 17:53:59

brotatos
Member
Registered: 2011-12-25
Posts: 37

Re: [SOLVED] Can't Change Sickbeard's User

Is there a way to allow the group rather than user have +x permissions on the parent folders?

Offline

#6 2012-07-14 19:52:40

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: [SOLVED] Can't Change Sickbeard's User

sure, chown g+x


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#7 2012-07-15 18:52:42

brotatos
Member
Registered: 2011-12-25
Posts: 37

Re: [SOLVED] Can't Change Sickbeard's User

chmod g+x didn't seem to help for /home/*. Sickbeard still can't create directories for shows I add.

Here's /home:  http://sprunge.us/DhPU

And here's /home/robin/:  http://sprunge.us/ZNRY

Offline

#8 2012-07-15 23:14:31

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: [SOLVED] Can't Change Sickbeard's User

I suggest keeping the shared stuff out of $HOME, eg in /home/shared_media, and add both slickbeard and your user to a group that owns the dir (and use 770 permission on the dir)

If you really want to keep the stuff in $HOME, then I suggest ACL instead.

Last edited by Mr.Elendig (2012-07-15 23:14:57)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#9 2012-07-15 23:28:20

brotatos
Member
Registered: 2011-12-25
Posts: 37

Re: [SOLVED] Can't Change Sickbeard's User

Thanks! I'll be doing that.

Offline

#10 2012-07-16 00:05:03

brotatos
Member
Registered: 2011-12-25
Posts: 37

Re: [SOLVED] Can't Change Sickbeard's User

Sickbeard was able to create folders under /home/media; however, it was unable to rewrite the filenames.

Here are the permissions for /home:
http://sprunge.us/WhJS

EDIT: Solved it by doing a

chmod 755 -R /home/media.

Last edited by brotatos (2012-07-16 01:47:33)

Offline

Board footer

Powered by FluxBB