August 21, 20169 yr I have a seedbox and I sync files from it to my local unraid server using LFTP. However, when it gets sync'd over, the permissions are wrong: Folders: root:root with 775 Files: root:root with 664 To sync the files, I have a script that runs every 10 mins with cron (using Flock to protect against long file transfers). What's the right way to solve this so the ownership and permission are set correctly?
August 21, 20169 yr I can see two possible solutions. Either add chown and chmod commands to your script to make the ownership and permissions of the files it processes what you want them to be, or run the script as the required user instead of as root. I'd say the latter is the preferred route. Any user can have a crontab file, not just root. It's documented here and here and it works with a general Linux distribution, though I've never done it with unRAID.
Archived
This topic is now archived and is closed to further replies.