Completed dir on cifs mount does not work

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
neographikal
Newbie
Newbie
Posts: 9
Joined: March 30th, 2008, 6:36 am

Completed dir on cifs mount does not work

Post by neographikal »

I'm running sabnzbd 0.6.9 on Ubuntu 11.04 against a FreeNAS 0.8 box with a cifs share. I want to unpack the completed downloads to a cifs mount on my filesystem. I mount it during boot time with fstab and with the user sabnzbd is working under, I can create and delete files on this mount. When I try to set the completed dir to the mount, sabnzbd gives this error:

Cannot create complete_dir folder /mnt/media/Download

fstab:

Code: Select all

//192.168.199.1/Media /mnt/media cifs username=neo,password=**** 0 0

Code: Select all

neo@neo-download:~$ cd /mnt/media
neo@neo-download:/mnt/media$ ls
Diag504fCD.iso  Download  test
neo@neo-download:/mnt/media$ mkdir test2
neo@neo-download:/mnt/media$ ls
Diag504fCD.iso  Download  test  test2
neo@neo-download:/mnt/media$ rmdir test2
neo@neo-download:/mnt/media$ ls
Diag504fCD.iso  Download  test
neo@neo-download:/mnt/media$
neo@neo-download:/mnt/media$ ls -al
total 2189
drwxrwxrwx 4 1001 1001       0 2011-09-28 00:20 .
drwxr-xr-x 3 root root    4096 2011-09-27 23:16 ..
-rw-rw-rw- 1 1001 1001 2207744 2011-09-14 14:17 Diag504fCD.iso
drwxrwxr-x 2 1001 1001       0 2011-09-27 23:59 Download
drwxrwxr-x 2 1001 1001       0 2011-09-28 00:02 test

Sabnzbd is also running under user neo:

Code: Select all

neo        978  0.1  5.5 253448 28144 ?        Sl   00:16   0:00 /usr/bin/python -OO /usr/bin/sabnzbdplus --daemon --server 0.0.0.0:8080
I'm confused, why isn't this working?
pmow
Release Testers
Release Testers
Posts: 57
Joined: May 15th, 2009, 6:09 pm
Location: Florida

Re: Completed dir on cifs mount does not work

Post by pmow »

Who is user 1001? Because that's the user that has access to Download. All you did there is prove that user neo has access to write to /mnt/media, not /mnt/media/Download (which already exists).

There is a cifs_mount option called uid, which will allow you to set the owner of the mount.
Post Reply