downloaded folders not accessable, wrong folder permissions?

Get help with all aspects of SABnzbd
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
User avatar
gobbledigook
Newbie
Newbie
Posts: 6
Joined: February 20th, 2009, 7:29 am
Location: Bristol, UK

downloaded folders not accessable, wrong folder permissions?

Post 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
Last edited by Anonymous on May 3rd, 2009, 11:51 am, edited 1 time in total.
Jaunty_Joke
Newbie
Newbie
Posts: 11
Joined: April 25th, 2009, 7:17 pm

Re: downloaded folders not accessable, wrong folder permissions?

Post by Jaunty_Joke »

in etc/defaults/sabnzbdplus what user are you running sab as?
User avatar
gobbledigook
Newbie
Newbie
Posts: 6
Joined: February 20th, 2009, 7:29 am
Location: Bristol, UK

Re: downloaded folders not accessable, wrong folder permissions?

Post 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.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: downloaded folders not accessable, wrong folder permissions?

Post 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.
User avatar
gobbledigook
Newbie
Newbie
Posts: 6
Joined: February 20th, 2009, 7:29 am
Location: Bristol, UK

Re: downloaded folders not accessable, wrong folder permissions?

Post 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:)
DeXeS
Release Testers
Release Testers
Posts: 206
Joined: January 28th, 2008, 1:04 pm
Location: The Netherlands

Re: downloaded folders not accessable, wrong folder permissions?

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