Error Failed To Open Directory /var/lib/awstats Permission Denied
Contents |
Tutorials/Articles Search HCL Search Reviews Search ISOs Go to Page... LinuxQuestions.org > Forums > Linux Forums > Linux - Software Permission denied Awstats User you don't have permission to access /awstats/awstats.pl on this server. Name Remember Me? Password Linux - Software This forum is for Software issues.
Setup ('/etc/awstats/awstats.conf' File Web Server Or Permissions) May Be Wrong
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. Notices Welcome to LinuxQuestions.org, a friendly and active Linux Community. You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today! Note that registered members see fewer ads, and ContentLink is completely disabled once you log in. Are you new to LinuxQuestions.org? Visit the following links: Site Howto | Site FAQ | Sitemap | Register Now If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here. Having a problem logging in? Please visit this page to clear all LQ-related cookies. Introduction to Linux - A Hands on Guide This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter. For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own. Click Here to receive this Complete Guide absolutely free. Page 1 of 2 1 2 > Search this Thread 03-20-2010, 08:12 PM #1 tommytomato Member Registered: Nov 2003 Location: Narrogin We
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top AWSTATS - manual update error (permissions) up vote 0 down vote favorite Error: Couldn't open file "/var/www/awstats/awstats032014.site.net.tmp.9198" for write: Permission http://www.linuxquestions.org/questions/linux-software-2/permission-denied-awstats-796773/ denied Setup ('/etc/awstats/awstats.site.net.conf' file, web server or permissions) may be wrong. Check config file, permissions and AWStats documentation (in 'docs' directory). I get this error when manual trying to update awstats (via the browser link). I have set the folder permissions of /var/www/awstats/ to 775 and still get the error. If I create a new file on that folder the default permission setting set the permissions to 774 which should work. linux apache-2.2 awstats share|improve this question asked Mar 24 '14 http://serverfault.com/questions/584130/awstats-manual-update-error-permissions at 11:15 Lewis 1126 The Unix permissions model includes users and groups which you have omitted from your question. Without knowing what user and group the file belongs to, only the 5 in the permissions 775 has any meaning to us. The directory, the file itself and the process attempting to access the file will all have a user and a group. Could you add them to your question? –Ladadadada Mar 24 '14 at 11:24 It's a temporary file so I can't be sure as it doesn't exists after this error is produced however the non-temporary version of the file has these permissions: -rw-r--r-- 1 root root 6662 –Lewis Mar 24 '14 at 15:29 The directory /var/www/awstats has permissions. –ETL Mar 24 '14 at 17:01 That comes up as drwxrwxr-x 9 root root –Lewis Mar 24 '14 at 18:48 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote The permissions drwxrwxr-x root root mean that only the root user and members of the root group can write to that directory. Creating or deleting files within a directory is considered to be writing to that directory so the permissions checks are done against the containing directory when you try to create the file /var/www/awstats/awstats032014.site.net.tmp.9198. The other half of this problem is that it is Apache that is doing the creating of files. Apache usually runs as the www-data
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any http://askubuntu.com/questions/21475/awstats-cannot-access-var-log-apache2-access-log questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu error failed users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top AWStats: cannot access /var/log/apache2/access.log up vote 10 down vote favorite 2 I installed awstats on my new Ubuntu Lucid error failed to server, but when cron tries to run it as user www-data, it complains that cannot access /var/log/apache2/access.log: Permission denied. In /usr/share/doc/awstats/README.Debian there's this paragraph: By default Apache stores (since version 1.3.22-1) logfiles with uid=root and gid=adm, so you need to either... 1) Change the rights of the logfiles in /etc/logrotate.d/apache so that www-data has at least read access. 2) As 1) but change to a specific user, and use the suEXEC feature of Apache to run as same user (and either change the right of /var/lib/awstats as well or use another directory). This is more complicated, but then the logs are not generally accessible to the server (which was probably the point of the Apache default). 3) Change awstats.pl to group adm (but beware that you are then taking the risk of allowing a CGI-script access to admin stuff on the machine!). I'd go with 1, but what are the recommended permissions to grant? server permissions apache2 logging share|impro