Permission issue when uploading to NAS using CIFS

Bug #977118 reported by Patrik Sandin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Rapid Photo Downloader
Invalid
Undecided
Unassigned

Bug Description

This is with Rapid Photo Downloader 0.4.1.
I am having difficulties getting permission correct when I try to upload pictures to my NAS which is mounted/home/patrik/mnt/ using cifs.

The mount command is:
sudo mount //sahldisk/public/Media home/patrik/mnt/ -t cifs -o username=XXXXX,password=XXXXXX,uid=1000,gid=1000

patrik@Byron:~/$ id
uid=1000(patrik) gid=1000(patrik) grupper=1000(patrik),4(adm),20(dialout),24(cdrom),46(plugdev),112(lpadmin),120(admin),122(sambashare),

An error occurred when copying the photo
Error: 14 Fel vid öppning av filen "/home/patrik/mnt/Pictures/rpd-tmp-64pNqn/DSC_2865.JPG": Åtkomst nekas
File: /media/NIKON D300/DCIM/103ND300/DSC_2865.JPG

which means access denied.

drwxrwxrwx 318 root users 0 2012-04-09 12:10 Pictures/
drwxrwxrwx 52 root users 0 2012-04-09 12:11 Videos/
patrik@Byron:~/mnt$

drwxrwxrwx 2 root users 0 2009-09-15 22:13 Rom_2009/
drwx------ 2 99 users 0 2012-04-09 12:10 rpd-tmp-64pNqn/

if I do:
 patrik@Byron:~/mnt/Pictures$ mkdir permission_test
 and check permissions
drwxrwxr-x 2 99 users 0 2012-04-09 12:39 permission_test/

The permissions of the file
-rw-r--r-- 1 patrik patrik 6431441 2012-04-08 16:08 /media/NIKON D300/DCIM/103ND300/DSC_2865.JPG

why does rapid-photo-downloader create the directory with different permissions?

It might be some subtle cifs permission I need to tweak, but should not rapid-photo-downloader work the same way as when I do it manually?

description: updated
Revision history for this message
Damon Lynch (dlynch3) wrote :

Hi Patrik,

Have you considered trying version 0.4.3? It's been released for some months now.

Rapid Photo Downloader uses code provided by Gnome to actually copy and rename files. So it will default to whatever those libraries default to use, which may not be the same as what happens when you use a shell.

I have no experience with NAS or cifs. You may find it helpful to ask on a discussion forum or other expert area to see what they suggest. Using a network system like you are adds another layer of complexity, and one that is outside my area of expertise. It's possible you may have found a bug in Rapid Photo Downloader, but it's possible there is a problem somewhere else too, that is unrelated to the code.

Revision history for this message
Damon Lynch (dlynch3) wrote :

Marking as incomplete due to no response from original bug reporter.

Changed in rapid:
status: New → Incomplete
Revision history for this message
Damon Lynch (dlynch3) wrote :

Closing due to no response from original bug reporter.

Changed in rapid:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.