I have a script to upload all the contents of the attachments/ folder to upload to s3. I am however having to run with sudo everytime I try that. Whenever s3object tries to read, it throws a FileAccessDenied expection. I would like to know if its possible to:
edit the permissions for the files uploaded to the attachments folder.
run without sudo.
Or are there another ways to backup the attachments?