Page 1 of 1

Completed dir on cifs mount does not work

Posted: September 27th, 2011, 5:22 pm
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?

Re: Completed dir on cifs mount does not work

Posted: October 3rd, 2011, 8:15 pm
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.