webdav / apache 2.2.6

This is a discussion on webdav / apache 2.2.6 within the Apache Web Server forums, part of the Web Server and Related Forums category; hi all, i've set up a webdav directory and it works fine. there's just one problem: i'm ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-06-2007
Lammi
 
Posts: n/a
Default webdav / apache 2.2.6

hi all,

i've set up a webdav directory and it works fine. there's just one
problem: i'm not able to define a user who's not allowed to write or
delete files. either there was no user allowed to access the directory
or all users had full access.

this is my conf:

DavLockDB "/home/lock/DavLock"

Alias /transfer "/home/transfer"

<Directory "/home/transfer">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>

<Location /transfer>
# WebDav einschalten
Dav on

# Dateien als Text anzeigen
ForceType text/plain

# Benutzer
AuthType Digest
AuthName WebDav
AuthDigestDomain /transfer https://server/transfer
AuthDigestProvider file
AuthUserFile "/home/user/WebDavUser"
AuthGroupFile "/home/user/WebDavGroup"
require valid-user
<Limit HEAD POST PUT COPY DELETE LOCK MKCOL MOVE UNLOCK>
Require group rw
</Limit>
</Location>

everything works fine if the user is memeber of group rw. if he's not,
he has no access to the directory. i've tried several different confs,
f. e.:

<LimitExcept OPTIONS>
Require valid-user
</LimitExcept>
<Limit COPY DELETE LOCK MKCOL MOVE POST PUT UNLOCK>
Require group rw
</Limit>

but i hat the same problem.

there's my fault?

  #2 (permalink)  
Old 11-07-2007
D. Stussy
 
Posts: n/a
Default Re: webdav / apache 2.2.6

"Lammi" <Lorenz.Lammersdorf@gmail.com> wrote in message
news:1194347922.263788.41670@z9g2000hsf.googlegrou ps.com...
> i've set up a webdav directory and it works fine. there's just one
> problem: i'm not able to define a user who's not allowed to write or
> delete files. either there was no user allowed to access the directory
> or all users had full access.
>
> <Location /transfer>
> ...
> AuthGroupFile "/home/user/WebDavGroup"
> require valid-user


REMOVE "require valid-user"

> <Limit HEAD POST PUT COPY DELETE LOCK MKCOL MOVE UNLOCK>
> Require group rw
> </Limit>
> </Location>
> ...
> there's my fault?



  #3 (permalink)  
Old 11-07-2007
Lammi
 
Posts: n/a
Default Re: webdav / apache 2.2.6

removing "require valid-user" opens the directory for eevryone. that's
not the idea. i need a conf, that allows registered people to read and
some of those people to write.


  #4 (permalink)  
Old 11-07-2007
Lammi
 
Posts: n/a
Default Re: webdav / apache 2.2.6

i found a working solution, thanks for your hint.

  #5 (permalink)  
Old 11-08-2007
SartDameAveline
 
Posts: n/a
Default Re: webdav / apache 2.2.6

On 7 nov, 08:19, Lammi <Lorenz.Lammersd...@gmail.com> wrote:
> i found a working solution, thanks for your hint.


Could you trow some light about your solution?
Many thanks
SartDameAveline

  #6 (permalink)  
Old 11-08-2007
Lammi
 
Posts: n/a
Default Re: webdav / apache 2.2.6

On 8 Nov., 15:30, SartDameAveline <a...@swing.be> wrote:
> On 7 nov, 08:19, Lammi <Lorenz.Lammersd...@gmail.com> wrote:
>
> > i found a working solution, thanks for your hint.

>
> Could you trow some light about your solution?
> Many thanks
> SartDameAveline


of course, here are my apache2.conf directives:

DavLockDB "/home/lock/DavLock"

Alias /transfer "/home/transfer"

<Directory "/home/transfer">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>

<Location /transfer>
# WebDav einschalten
Dav on

# Dateien als Text anzeigen
ForceType text/plain

# Benutzer
AuthType Digest
AuthName WebDav
AuthDigestDomain /transfer https://server/transfer
AuthDigestProvider file
AuthUserFile "/home/user/WebDavUser"
AuthGroupFile "/home/user/WebDavGroup"
<Limit GET HEAD OPTIONS>
require group ro rw
</Limit>
<Limit POST PUT COPY DELETE LOCK MKCOL MOVE UNLOCK>
Require group rw
</Limit>
</Location>

greetings

  #7 (permalink)  
Old 11-09-2007
SartDameAveline
 
Posts: n/a
Default Re: webdav / apache 2.2.6

On 8 nov, 17:00, Lammi <Lorenz.Lammersd...@gmail.com> wrote:
> On 8 Nov., 15:30, SartDameAveline <a...@swing.be> wrote:
>
> > On 7 nov, 08:19, Lammi <Lorenz.Lammersd...@gmail.com> wrote:

>
> > > i found a working solution, thanks for your hint.

>
> > Could you trow some light about your solution?
> > Many thanks
> > SartDameAveline

>
> of course, here are my apache2.conf directives:
>
> DavLockDB "/home/lock/DavLock"
>
> Alias /transfer "/home/transfer"
>
> <Directory "/home/transfer">
> Options Indexes MultiViews
> AllowOverride None
> Order allow,deny
> allow from all
> </Directory>
>
> <Location /transfer>
> # WebDav einschalten
> Dav on
>
> # Dateien als Text anzeigen
> ForceType text/plain
>
> # Benutzer
> AuthType Digest
> AuthName WebDav
> AuthDigestDomain /transferhttps://server/transfer
> AuthDigestProvider file
> AuthUserFile "/home/user/WebDavUser"
> AuthGroupFile "/home/user/WebDavGroup"
> <Limit GET HEAD OPTIONS>
> require group ro rw
> </Limit>
> <Limit POST PUT COPY DELETE LOCK MKCOL MOVE UNLOCK>
> Require group rw
> </Limit>
> </Location>
>
> greetings


Many thanks.
SartDameAveline

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:50 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0