I have a raspberry pi behind a Fritzbox router that also doubles as a nas with a drive connected via USB.
I have mounted the nas to the pi's "/media/fritzbox-usb" directory and would like all users to have full read, write and rename/delete rights.
I used this command, issued as "sudo" from the pi user.
mount -t cifs -o username="fritboxuser",password="fritzboxpassword",uid=1000,gid=1000,sec=ntlm "//192.168.2.1/fritz.nas/Volume/mymediafolder" /media/fritzbox-usb
Afterwards, the nas is mounted for all users and it's possible to copy files from it and copy files to it.
When I use WinSCP to connect as the "pi" user, files are uploaded as "filename.ext.filepart" and, after completion, renamed. With this setup, the pi user doesn't have renaming rights, so at the end of the transfer, I get
Error Code 3 - permission denied.
When I SSH into the pi as the pi user, I can issue the "mv filename.ext.filepart filename.ext" command and rename the file.
Any idea what I could do to make direct uploads possible?
Some more info: From winscp I have the right to delete the file. The file permissions are shown as "rwxrwxrwx" and the owner of the file is "pi". Using WinSCP to copy files to folders directly on the pi is fine, only this mounted nas drive is giving problems