kenzo86 Posted January 19, 2015 Share Posted January 19, 2015 Hi guys, I was wondering if anyone could kindly help. I have a nifty little set-up, thanks to users on the forum where a script running as a cronjob grabs folders from a remote server (lftp) on to the cache drive on my nas, Couchpotato then moves these folders to a share (disk1,2,3, etc). Occasionally, for some reason or another, CP fails to move the odd folder and its content, and the reason is, it requires "permission from root" (get this message when trying to edit/delete file manually from explorer). While other folders have moved no problem and are under the user "nobody" (My unraid only has root user). I have made sure permissions are 755, but even then I cannot edit the file name or delete in windows explorer. Any ideas why this might be happening and how I can fix it ? My script includes changing permissions to 755 lftp <<EOF set ftp:ssl-auth TLS set ftp:ssl-force true set ftp:ssl-protect-list yes set ftp:ssl-protect-data yes set ssl:verify-certificate off open -u $login,$pass $host chmod -R 755 ~/home/seeduser/downloads/sync mirror -c --use-pget-n=20 --Remove-source-files --log=/var/log/synctorrents_movies.log /home/seeduser/downloads/sync /mnt/user/downloads/complete/movies quit 0 EOF Link to comment
BRiT Posted January 20, 2015 Share Posted January 20, 2015 One more suggestion, at the end of your script, after you finish running 'lftp', run newperms. /usr/local/sbin/newperms /mnt/user/downloads/complete/movies eg: lftp <<EOF set ftp:ssl-auth TLS set ftp:ssl-force true set ftp:ssl-protect-list yes set ftp:ssl-protect-data yes set ssl:verify-certificate off open -u $login,$pass $host chmod -R 755 ~/home/seeduser/downloads/sync mirror -c --use-pget-n=20 --Remove-source-files --log=/var/log/synctorrents_movies.log /home/seeduser/downloads/sync /mnt/user/downloads/complete/movies quit 0 EOF /usr/local/sbin/newperms /mnt/user/downloads/complete/movies Link to comment
kenzo86 Posted January 20, 2015 Author Share Posted January 20, 2015 thanks for the suggestion, I will give it a shot Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.