LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-28-2009, 12:12 PM   #1
chickenminnie
LQ Newbie
 
Registered: Jan 2005
Location: ALbany, NY
Distribution: SLES
Posts: 13

Rep: Reputation: 0
Permissions problem I am still struggling with.


I am seeing this error in my error logs when I attempt to upload a file using webDAV to a folder:

Mon Dec 28 10:32:01 2009] [error] [client 163.153.xxx.xxx] The locks could not be queried for verification against a possible "If:" header. [500, #0]
[Mon Dec 28 10:32:01 2009] [error] [client 163.153.xxx.xxx] Could not open the lock database. [500, #400]
[Mon Dec 28 10:32:01 2009] [error] [client 163.153.xxx.xxx] (13)Permission denied: Could not open property database. [500, #1]

I noticed that my attempted upload did not write anything to the DAV directory (which I believe is what this error is referring to). The DAV directory is writable by the apache service. Can anyone shed some light on this? This is a SLES 10 server. Thanks.

Last edited by chickenminnie; 12-28-2009 at 12:17 PM.
 
Old 12-28-2009, 04:43 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
What uid is apache running as, what are the permissions on the directory/files? Are you running anything like suphp or fastcgi/suexec?
 
Old 12-29-2009, 10:21 AM   #3
chickenminnie
LQ Newbie
 
Registered: Jan 2005
Location: ALbany, NY
Distribution: SLES
Posts: 13

Original Poster
Rep: Reputation: 0
If I type ps -ef at the command line I see several lines like this:

wwwrun 914 912 0 Dec28 ? 00:00:01 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL

Am I correct in concluding that apache is running as wwwrun?


The DAV directory has these permissions:
drwxrwxrwx 2 root root 4096 Dec 23 13:34 DAV

And if I do a ls -l on the DAV directory I get this:
-rwxrwxrwx 1 wwwrun www 3 Dec 23 13:26 .dir
-rwxrwxrwx 1 wwwrun www 3 Dec 23 13:34 .pag

As far as I know I do not have suphp or fastcgi/suexec running on this server.
 
Old 12-31-2009, 11:14 AM   #4
chickenminnie
LQ Newbie
 
Registered: Jan 2005
Location: ALbany, NY
Distribution: SLES
Posts: 13

Original Poster
Rep: Reputation: 0
Addendum to my answer to rweaver: I am seeing a reference to suexec in the apache logs. I happened to notice this after restarting apache: suexec mechanism enabled (wrapper: /usr/sbin/suexec2. Could that be imposing some sort of file restrictions I am unaware of? Thanks.
 
Old 12-31-2009, 12:49 PM   #5
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
It would depend how it is executing, could you post up the logs?
 
Old 12-31-2009, 04:33 PM   #6
allanf
Member
 
Registered: Sep 2008
Location: MN
Distribution: Gentoo, Fedora, Suse, Slackware, Debian, CentOS
Posts: 100
Blog Entries: 1

Rep: Reputation: 20
Quote:
Originally Posted by chickenminnie View Post
If I type ps -ef at the command line I see several lines like this:

wwwrun 914 912 0 Dec28 ? 00:00:01 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL

Am I correct in concluding that apache is running as wwwrun?


The DAV directory has these permissions:
drwxrwxrwx 2 root root 4096 Dec 23 13:34 DAV

And if I do a ls -l on the DAV directory I get this:
-rwxrwxrwx 1 wwwrun www 3 Dec 23 13:26 .dir
-rwxrwxrwx 1 wwwrun www 3 Dec 23 13:34 .pag

As far as I know I do not have suphp or fastcgi/suexec running on this server.
The configuration file, /etc/apache2/httpd.conf (as seen in your results), controls the user and group that apache runs as.
 
Old 01-03-2010, 10:39 AM   #7
chickenminnie
LQ Newbie
 
Registered: Jan 2005
Location: ALbany, NY
Distribution: SLES
Posts: 13

Original Poster
Rep: Reputation: 0
For rweaver: I did a find on anything related to suexec that would be a log file, but turned up nothing. Shouldn't it be logging something if it's running?

For allanf: Apache is running as wwwrun (user) www (group).
 
Old 01-16-2010, 10:05 PM   #8
allanf
Member
 
Registered: Sep 2008
Location: MN
Distribution: Gentoo, Fedora, Suse, Slackware, Debian, CentOS
Posts: 100
Blog Entries: 1

Rep: Reputation: 20
I use apache (and have for a long time) but i do not use WEBDAV. Seeing this information it says that apache is indeed
username: wwwrun
group: www
Given that and your permissions above, I would:
chgrp www DAV
which will change the owning group for DAV to be that of the the running apache server. The internals directories you show are already owned by username, wwwrun, and group, www.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
struggling with this prakash.akumalla *BSD 3 07-14-2008 09:25 AM
Yet another struggling newbie. rscds LinuxQuestions.org Member Intro 1 05-18-2008 09:44 AM
Struggling with permissions on NAS drive rwhitworth SUSE / openSUSE 1 01-06-2007 12:49 PM
Still struggling with speedtouch Dogman2 Linux - Newbie 3 04-12-2006 09:21 AM
Really struggling with ATI crimsontide Linux - Hardware 1 02-01-2006 10:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration