troubleshooting Question

webdav - apache2 <Limit> directive

Avatar of Luxana
LuxanaFlag for Australia asked on
Apache Web Server
2 Comments1 Solution2170 ViewsLast Modified:
Hello experts,

I have configured webdav and now i'm trying to limit access for user1 however even I implement <limit> directive still user1 can remove files from webdav directory. Not sure what am i doing wrong. Here is my conf file:

NameVirtualHost *
<VirtualHost *>
        ServerAdmin webmaster@localhost
        ServerName gateway.local
        ServerAlias www.gateway.local



        DocumentRoot /home/apache2/gateway.local

        ErrorLog /var/log/apache2/error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog /var/log/apache2/access.log combined
        ServerSignature On

        <Directory /home/apache2/gateway.local/webdav>
        DAV On
        AuthType Digest
        <Limit GET POST PUT CONNECT OPTIONS PATCH PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
        Require user user1
        </Limit>
        AuthName "webdav_pass_data"
        AuthDigestFile /home/apache2/digest-password
        </Directory>

</VirtualHost>

cadaver output:


 cadaver http://gateway.local/webdav
Authentication required for webdav_pass_data on server `gateway.local':
Username: user1
Password:
dav:/webdav/> ls
Listing collection `/webdav/': succeeded.
        test                                   0  Feb 12 22:23
dav:/webdav/> delete test
Deleting `test': succeeded.
dav:/webdav/> ls
Listing collection `/webdav/': collection is empty.
dav:/webdav/>


Permitions for webdav directory:
ls -alFd webdav/
drwxr-xr-x  2 www-data www-data 1024 2006-02-12 22:24 webdav//

Apache2 is running on debian sarge.


any ideas? thanks for help

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 2 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros