Permission problem copying files from network HDD
Posted: Thu Apr 30, 2020 8:15 am
Goodmorning,
I have a raspberry like a torrent downloader. this is my setup:
I have an HDD connected to my router Netgear R7500 with some shared folders (some public and other with password).
Raspberry mount at startup a folder in the HDD with this line in /etc/fstab
Raspberry runs deluge deamon at startup with this line in /etc/init.d
(where elia is my user)
Deluge download temps files in a folder in network hdd and copy the completed download in another folder in the hdd.
Now the problem:
with my macbook, connect the hdd trough smb, with the same admin and password used by fstab (the only user and password in router). I can't copy files saved by deluge from network hdd to my macbook. I receive this error: “The Finder can’t complete the operation because some data in “FileName” can’t be read or written. (Error code -36)”.
If I copy a file from my raspberry desktop to network hdd, I can copy it to my Mac!
I'm not new in linux and Mac, so first I've checked permission on my Mac and no problem: my user have read and write access to all the file.
On raspberry, I run ls -l command, and all the files on the network hdd are read and write accessible:
The strange things, is that if I copy a deluge downloaded file and paste it in another folder on hdd, now I can copy both files...and with ls -l nothing changed in permission!
someone can help me?
thanks!!
Elia
I have a raspberry like a torrent downloader. this is my setup:
I have an HDD connected to my router Netgear R7500 with some shared folders (some public and other with password).
Raspberry mount at startup a folder in the HDD with this line in /etc/fstab
Code: Select all
//my.router.addr.ess/shared/folder /media/elianas cifs _netdev,user,username=adminuserrouter,password=adminpasswordrouter,file_mode=0777,dir_mode=0777,nofail,vers=1.0 0 0 Code: Select all
sudo -u elia /usr/bin/python /usr/bin/delugedDeluge download temps files in a folder in network hdd and copy the completed download in another folder in the hdd.
Now the problem:
with my macbook, connect the hdd trough smb, with the same admin and password used by fstab (the only user and password in router). I can't copy files saved by deluge from network hdd to my macbook. I receive this error: “The Finder can’t complete the operation because some data in “FileName” can’t be read or written. (Error code -36)”.
If I copy a file from my raspberry desktop to network hdd, I can copy it to my Mac!
I'm not new in linux and Mac, so first I've checked permission on my Mac and no problem: my user have read and write access to all the file.
On raspberry, I run ls -l command, and all the files on the network hdd are read and write accessible:
Code: Select all
sudo ls -l /media/elianas/MediaShares
totale 2510848
drwxrwxrwx 1 root root 0 apr 29 21:11 Nuovo
drwxrwxrwx 1 root root 0 apr 29 18:05 'The Rider - Il Sogno di un Cowboy 2017 BluRay 1080xH264 Ita Eng AC3 5.1 Sub Ita Eng'
drwxrwxrwx 1 root root 0 apr 29 19:56 torrent_temp
-rwxrwxrwx 1 root root 2570431232 apr 29 19:56 'Underwater (2020) AC3 5.1 ITA.ENG 1080p H265 sub ita.eng Sp33dy94-MIRCrew.mkv'
someone can help me?
thanks!!
Elia