I have a python script that runs on an hourly basis via a cron job. I have the cron job logging turned on, however because I wanted some other logging done within the app, I also have some log files that the python script is supposed to write to directly, in a separate folder. However, I keep getting errno 13, permission denied when trying to append to these files... What do I need to set the folder "Logs" and subsequent log files to? asked 11 Feb '11, 15:26 Hosemeyer |
Your main user needs RW permissions on the log file itself, and RX or RWX on every directory in the path leading to the file. You can't create files directly in ~/logs since root owns that - instead, you can use ~/logs/user or some location outside of ~/logs. answered 11 Feb '11, 17:26 seanf |