Page 1 of 1

downloaded folders not accessable, wrong folder permissions?

Posted: May 3rd, 2009, 8:54 am
by gobbledigook
Hi!

I'm running SAB 0.4.6 on Ubuntu server edition. I recently installed a new hard disk drive, and had some issues with fstab, got everything working finally and shifted data around in order to get it how i wanted. I moved the download and complete directory from one disk to another, but mounted the disk in the same place in fstab.

but when i fired up a download, firstly it wouldn't write to the disk. i had to create a new download/complete directory for it to write to. this is not the issue, the issue is that every time i complete a new download now, it cannot be accessed from my samba share until i've chmod 777 the folder from the command line?

any ideas how i can sort this out? below is the permissions which i get:

first my original download folder with which i had no problems:

Code: Select all

drwxrwxrwx 14 server root 4096 2009-04-30 00:37 download
the folder which i had to create for new downloads:

Code: Select all

drwxrwxrwx 2 server server 4096 2009-05-01 12:01 download
and the same folder with some newly downloaded files which i cannot access:

Code: Select all

drwx------ 2 server server 4096 2009-05-03 14:38 download1
drwxrwxrwx 2 server server 4096 2009-05-01 12:03 download2
if you need anymore info just ask:)

thanks!

Dan

Re: downloaded folders not accessable, wrong folder permissions?

Posted: May 3rd, 2009, 11:55 am
by Jaunty_Joke
in etc/defaults/sabnzbdplus what user are you running sab as?

Re: downloaded folders not accessable, wrong folder permissions?

Posted: May 5th, 2009, 7:57 am
by gobbledigook
hi, its in /etc/default/sabnzbdplus,

i am using my user account which is the same one as before? its the one i set up when i installed ubuntu, i'm not sure how this is relevent? as i own the folders in the downloads dir and they are accessed through the same user in samba.

Re: downloaded folders not accessable, wrong folder permissions?

Posted: May 6th, 2009, 6:35 am
by shypike
SABnzbd has the rights of the user account that is used to start it.
There's nothing fancy going on.
Either SABnzbd has access or it doesn't, at the courtesy of the operating system.

Re: downloaded folders not accessable, wrong folder permissions?

Posted: May 12th, 2009, 7:15 am
by gobbledigook
ok, quite by chance i found that in the folders section of the config you can just enter the octal notation for folder permissions. so i entered 777.

job done:)

Re: downloaded folders not accessable, wrong folder permissions?

Posted: May 12th, 2009, 3:59 pm
by DeXeS
To clarify what Shypike is saying;
When you start sabnzbd with "userA" the downloaded files and folders get the permission that "userA" and administrators can edit/view the files and folders.
So when you go to the samba share from let's say an xp machine, you access the samba share with "smbuser" (i think it is smbuser but i could be wrong) and "smbuser" is not administrator or userA so he can't access the folders and files made by userA.

So there are 4 sollutions you can do;
* Give smbuser admin permissions (not a good idea)
* Let sabnzbd+ start by smbuser (also not a good idea)
* Let sabnzbd+ start by UserA and login to the samba share with UserA (in xp this can be a little bit tricky tho)
* in sabnzbd+ enter 777 at the permissions so everybody has full permissions.