January 29, 201214 yr Having to constantly run chmod/chown/chgrp on items that are written to the shares by subsonic, sickbeard, couchpotatoe and sabnzbd is getting old quite fast. I'm unable to find a way to get these programs to write as nobody:users, they keep writing as root:root and then i have to go in and /usr/local/sbin/newperms /mnt/user/share-name every time. It's been a while since i've messed with ACL and that is why i'm asking here before screwing things up. Will the permissions be carried over in restarts(i would suspect so) or is there something i have to change before this will work properly.
January 29, 201214 yr I thought one of the community-based addon packages had an install option to control who sabNZBd runs as. Even without that, I don't understand why you're having issues with sabNZBd. It has a setting to set the permissions of the files and even execute a script when the downloads are complete. Config / Folders / "Permissions for completed downloads" Config / Folders / "Post-Processing Scripts Folder"
January 29, 201214 yr Author I'm finding when SickBeard moves the files into my set location it resets the user and group back to root:root despite having set "775" on the permissions in sabnzbd. As well, when Subsonic downloads podcasts for me, it too also writes as root:root
January 31, 201214 yr Author I've been thinking about maybe adding a small script "/usr/local/sbin/newperms" to the hourly cronjob so that at least once an hour it's fixed. Current written status on an item written direct from sick beard, it's the same deal with subsonic: drwxrwx--- 1 nobody users 80 2012-01-31 00:38 . drwxrwx--- 1 nobody users 120 2012-01-31 00:38 .. drwxrwx--- 1 root root 408 2012-01-31 00:53 Season 12 -rw-rw---- 1 root root 427963 2012-01-30 03:39 fanart.jpg -rw-rw---- 1 root root 76494 2012-01-21 19:55 folder.jpg -rw-rw---- 1 root root 75313 2012-01-30 03:39 season01.tbn -rw-rw---- 1 root root 75143 2012-01-30 03:39 season02.tbn -rw-rw---- 1 root root 75132 2012-01-30 03:39 season03.tbn -rw-rw---- 1 root root 75089 2012-01-30 03:39 season04.tbn -rw-rw---- 1 root root 75110 2012-01-30 03:39 season05.tbn -rw-rw---- 1 root root 75481 2012-01-30 03:39 season06.tbn -rw-rw---- 1 root root 74878 2012-01-30 03:39 season07.tbn -rw-rw---- 1 root root 1104 2012-01-21 19:55 series.xml -rw-rw---- 1 root root 1301 2012-01-30 03:39 tvshow.nfo
February 2, 201214 yr Author For future: sudo -u nobody python /mnt/cache/.sickbeard/SickBeard.py -d Will cause sick beard to run as 'nobody' and as daemon without screen output. It works with sabnzbd and couchpotato as well. You just need to configure the ports and what not before starting or else you'll have issues. For times sake i added "sleep 2" between launching each app just for the hell of it. sudo -u nobody python /mnt/cache/.sabnzbd/SABnzbd.py -d sleep 2 sudo -u nobody python /mnt/cache/.couchpotato/CouchPotato.py -d sleep 2 sudo -u nobody python /mnt/cache/.sickbeard/SickBeard.py -d I tried those plugins found here: http://lime-technology.com/forum/index.php?topic=14760.0 and my machine became unresponsive and shut itself down, when I powered it back on, i was forced to do a parity check. I looked at the plg install files on that thread and it's basically doing the above command with a bit more on it, so I'm not sure wtf happened.
Archived
This topic is now archived and is closed to further replies.