Problem with permissions on a folder

Support for the Debian/Ubuntu package, created by JCFP.
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
teshiburu
Newbie
Newbie
Posts: 2
Joined: July 3rd, 2014, 3:32 am

Problem with permissions on a folder

Post 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?
User avatar
jcfp
Release Testers
Release Testers
Posts: 1022
Joined: February 7th, 2008, 12:45 pm

Re: Problem with permissions on a folder

Post 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.
teshiburu
Newbie
Newbie
Posts: 2
Joined: July 3rd, 2014, 3:32 am

Re: Problem with permissions on a folder

Post 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
Post Reply