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 |
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-28-2009, 12:12 PM
|
#1
|
LQ Newbie
Registered: Jan 2005
Location: ALbany, NY
Distribution: SLES
Posts: 13
Rep:
|
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.
|
|
|
12-28-2009, 04:43 PM
|
#2
|
Senior Member
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833
Rep: 
|
What uid is apache running as, what are the permissions on the directory/files? Are you running anything like suphp or fastcgi/suexec?
|
|
|
12-29-2009, 10:21 AM
|
#3
|
LQ Newbie
Registered: Jan 2005
Location: ALbany, NY
Distribution: SLES
Posts: 13
Original Poster
Rep:
|
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.
|
|
|
12-31-2009, 11:14 AM
|
#4
|
LQ Newbie
Registered: Jan 2005
Location: ALbany, NY
Distribution: SLES
Posts: 13
Original Poster
Rep:
|
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.
|
|
|
12-31-2009, 12:49 PM
|
#5
|
Senior Member
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833
Rep: 
|
It would depend how it is executing, could you post up the logs?
|
|
|
12-31-2009, 04:33 PM
|
#6
|
Member
Registered: Sep 2008
Location: MN
Distribution: Gentoo, Fedora, Suse, Slackware, Debian, CentOS
Posts: 100
Rep:
|
Quote:
Originally Posted by chickenminnie
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.
|
|
|
01-03-2010, 10:39 AM
|
#7
|
LQ Newbie
Registered: Jan 2005
Location: ALbany, NY
Distribution: SLES
Posts: 13
Original Poster
Rep:
|
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).
|
|
|
01-16-2010, 10:05 PM
|
#8
|
Member
Registered: Sep 2008
Location: MN
Distribution: Gentoo, Fedora, Suse, Slackware, Debian, CentOS
Posts: 100
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 01:41 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|