Page 1 of 1

Problem with permissions on a folder

Posted: July 3rd, 2014, 3:35 am
by teshiburu
I have just configured SABnzb on my RaspberryPI running raspmc and I am having some issues with adding items to SABnzb I get the following errors.

Code: Select all

When	                        Type	         Warning
2014-07-03 00:00:29,287	ERROR:	Cannot change permissions of /mnt/SAB/TEMP/Mrs.WHATEVER.1
I have looked at the folder in ssh using the following commands

sudo stat /mnt/SAB/TEMP

And i get the following output

Code: Select all

File: `/mnt/SAB/TEMP'
Size: 0               Blocks: 0          IO Block: 16384  directory
Device: 11h/17d Inode: 4180289604  Links: 4
Access: (0777/drwxrwxrwx)  Uid: (   99/ UNKNOWN)   Gid: ( 1000/      pi)
Access: 2014-07-02 23:01:09.935399000 +0100
Modify: 2014-07-03 00:00:25.675399000 +0100
Change: 2014-07-03 08:57:53.045399000 +0100
 Birth: -
I have also ran:

sudo touch /mnt/SAB/TEMP i-like-trains

with no issues and the file appears as it should - have I missed a config option within SAB?

*edit* I have just noticed the folder is being created but it would seem that SAB is having an issue changing the permissions of the folder?

Re: Problem with permissions on a folder

Posted: July 3rd, 2014, 7:12 am
by jcfp
Uid: ( 99/ UNKNOWN)
You probably forgot to mention these files are on some kind of network share or external disk. Which is apparently setup so that files are owned by uid 99 - which doesn't appear to exist on your system and therefore probably doesn't match the account running sab. And since nobody but root can change permissions on a file owned by someone else... sab will fail to change those permission if you tell it to do so anyway.

Re: Problem with permissions on a folder

Posted: July 4th, 2014, 4:50 am
by teshiburu
@jcfp

Thanks for the reply - I found the issue to be with my mount script, and have since changed it to the following

mount -t cifs //192.168.1.2/Public/SABNZDB/TEMP /mnt/SABNZDB/TEMP username=pi,passwd=#####,file_mode=0777,dir_mode=0777