I have a cron setup using sudo crontab -e on my EC2 (Ubuntu) which runs a bashfile to execute my python program. The python program creates a log file. Now due to some error if my program closes and I run it from terminal it gives me error for access denied.
chown/chmodcommand changing the ownership/permission of the log file?