June 26, 201313 yr So, this has been happening for a long time now, but I'm officially bothered enough to start a thread to attempt to resolve it now. It's been the same for many versions of the release candidates, so I don't think it's a unRAID problem, but could very well be a problem with how I have my shares setup and/or permissions of those shares. It could be a problem with SABnzbd, or something else I'm not thinking of. Anyway, here's my problem... I can add a file to SABnzbd by putting an nzb into the watch folder, and it will download it fine, unpack it and put it into the correct directory, and i can have no problems with that file. But, the next file will give me permissions errors when I try to access it. If I run the 'newperms' script on the directory which contains it, it's all fine. I haven't been able to find the exact scenario that causes this. It seems a bit random. It might be related to where i move the unpacked files. I just downloaded several albums, and have a rule that moves them to /mnt/user/music/newsgroup, as per the setup in SABnzbd, but forgot to set that rule for one of the albums, and it ended up in /mnt/user/backup/newsgroups/whateverthealbumiscalled and that folder will not open in Windows7, it just says the folder is inaccessable. running 'newperms' will fix it. All the other albums it's downloaded are in the /music/newsgroup folder and are fine. I have it set to put TV shows into another folder, and they are usually okay, but sometimes I will get one with permissions errors. this is very random. I think I have all the 'correct' permissions set in SABnzbd, but I'm still getting issues, so something isn't quite right. SABnzbd has Permissions for completed downloads set to 770 Here is the result of ls -la on the /mnt/user/backup/newsgroups folder root@media:/mnt/user/backup/newsgroups# ls -la total 3 drwxrwxrwx+ 1 nobody users 128 2013-06-26 02:24 ./ drwxrwxrw-+ 1 nobody users 80 2013-06-26 02:23 ../ drwxrwxrwx+ 1 nobody users 160 2013-04-07 02:17 2013\ V8\ Supercars\ Adelaide/ drwxrwx---+ 1 nobody users 1008 2013-06-26 02:24 AC-DC\ (1980)\ Back\ In\ Black\ (1990\ Atlantic\ Reissue\ 16018-2)/ drwxrwxrwx+ 1 nobody users 88 2013-05-31 02:35 Friends\ s01-d2/ drwxrwxrwx+ 1 nobody users 88 2013-06-01 02:51 Friends\ s04-d1/ drwxrwxrwx+ 1 nobody users 88 2013-06-02 02:39 Friends\ s04-d2/ drwxrwxrwx+ 1 nobody users 96 2013-06-03 05:33 Friends\ s05-d1/ drwxrwxrwx+ 1 nobody users 96 2013-06-04 02:36 Friends\ s05-d2/ drwxrwxrwx+ 1 nobody users 96 2013-06-07 02:35 Friends\ s06-d1/ drwxrwxrwx+ 1 nobody users 96 2013-06-08 02:36 Friends\ s06-d2/ drwxrwxrwx+ 1 nobody users 88 2013-06-09 02:34 Friends\ s07-d1/ drwxrwxrwx+ 1 nobody users 800 2013-06-11 02:42 Friends\ s07-d2/ drwxrwxrwx+ 1 nobody users 96 2013-06-11 03:01 Friends\ s08-d1/ drwxrwxrwx+ 1 nobody users 96 2013-06-12 02:43 Friends\ s08-d2/ drwxrwxrwx+ 1 nobody users 88 2013-06-13 02:48 Friends\ s09-d1/ drwxrwxrwx+ 1 nobody users 88 2013-06-14 02:42 Friends\ s09-d2/ drwxrwxrwx+ 1 nobody users 88 2013-06-16 02:36 Friends\ s10-d1/ drwxrwx---+ 1 nobody users 1008 2013-06-19 02:15 Friends\ s10-d2/ drwxrwxrwx+ 1 nobody users 112 2013-05-25 02:15 Intuit\ Quicken\ Rental\ Property\ Manager\ v2013\ retail-FOSI/ drwxrwxrwx+ 1 nobody users 48 2013-06-25 20:38 nzb/ You can clearly see which 2 folders have the wrong permissions, but why only those 2?
June 27, 201313 yr What user is SAB running as? It needs to be running as the user "nobody". I have a feeling it's running as root.
June 27, 201313 yr You're sure it's actually running as nobody? Post the results of ps -ef | grep -i sab
June 27, 201313 yr Author nope, not sure, just relaying what the plugin is showing. results below... root@media:~# ps -ef | grep -i sab root 20842 20766 0 23:54 pts/0 00:00:00 grep -i sab nobody 25902 1 5 Jun22 ? 05:30:41 python -OO /usr/local/sabnzbd/SABnzbd.py -d -s 0.0.0.0:8082 --config-file /mnt/cache/plugins/sabnzbd --pid /var/run/sabnzbd/ > /dev/null 2>&1 root@media:~# I see root and nobody listed, not sure what that means
June 27, 201313 yr nope, not sure, just relaying what the plugin is showing. results below... root@media:~# ps -ef | grep -i sab root 20842 20766 0 23:54 pts/0 00:00:00 grep -i sab nobody 25902 1 5 Jun22 ? 05:30:41 python -OO /usr/local/sabnzbd/SABnzbd.py -d -s 0.0.0.0:8082 --config-file /mnt/cache/plugins/sabnzbd --pid /var/run/sabnzbd/ > /dev/null 2>&1 root@media:~# I see root and nobody listed, not sure what that means The root PID is your grep command. You're definitely running as nobody. Try setting your folder permissions to 775 and restarting SAB, then try to recreate your problem.
June 27, 201313 yr Author Thanks again. I have changed the permissions to 775, and will report back this evening after a few things have finished downloading. I used to have 777 permissions, but changed to 770 based on a suggestion from someone else at some point in the past. The really confusing thing to me is that it's random. only some files show the permissions problem, not all of them. weird. I'll report back later.
July 18, 201312 yr Author I've mainly been downloading movies, which have all seemed fine, but all were processed by SABnzbd and put on my "Movies" user share. I've downloaded a couple of TV blu-rays and they've ended up on my "backup" share, and they are giving me permissions issues again. So something still isn't right. i was able to open the files with MakeMKV and extract the episodes into individual episodes just fine, but when I then tried to delete the folders, I get a windows "File Access Denied" error message. You need permisssion to perform this action Your require permission from MEDIA\nobody to make changes to this file The machine trying to delete the folder is logged in as "chris" I use users with logins to restrict access to some folders from others in the house, so I assume this is part of (all of) the problem. How to fix, and still keep the ability to restrict access to content, and not allow write (delete) privileges to other (underage) users?
Archived
This topic is now archived and is closed to further replies.