Mobile app version of vmapp.org
Login or Join
Odierno851

: AWStats Temp File Write Permissions Issue I'm having an issue with AWStats updating its temporary database. I have the call to update the reporting database every hour through launchd, which

@Odierno851

Posted in: #Awstats

I'm having an issue with AWStats updating its temporary database. I have the call to update the reporting database every hour through launchd, which runs as root. The perl scripts are called, and nothing gets updated. Troubleshooting demonstrated the following warning:


Warning: Failed to rename "/tmp/awstats082013.food.tmp.1641" into "/tmp/awstats082013.food.txt".
Write permissions on "awstats082013.food.txt" might be wrong or file might be opened.


The permissions on that file is 777. The permissions on /tmp are also 777. Why AWStats cannot modify that file is really the question. I can do this manually using sudo, but the bash script that is run hourly by launchd shouldn't have to take the sudo -A, nor does it work.

Any advice as to how I can push through this, is appreciated.

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Odierno851

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme