WebFaction
Community site: login faq

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
111
accept rate: 0%


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.

permanent link

answered 11 Feb '11, 17:26

seanf
12.2k41836
accept rate: 37%

edited 11 Feb '11, 17:26

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×64
×22

question asked: 11 Feb '11, 15:26

question was seen: 5,000 times

last updated: 11 Feb '11, 17:26

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM