I have created a cronjob that successfully executes and among other thing runs aria2c to download several files and save them to a folder. However, since it executes as sudo, the downloaded folder is saved with those permissions.
Is there a way to execute the cronjob so that the downloaded folder is saved as non-root? As of right now the additional scripts can not see the download as permissions are not the same. I have tried sudo chmod 777 /path/to/scripts, but that does not seem to help. Thank you .
as that user. Create a new entry for the job. The user should be one with suitable permissions to run other code later on against the downloaded file. Hopefully you have a group or some special acl that can allow this.
Make sure that the script does not require advanced permissions to run. This means setting permissions on the directory-ies where the script lives, and on the destination directory tree.
The Following User Says Thank You to jim mcnamara For This Useful Post: