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?
Re: webdav / apache 2.2.6
"Lammi" <Lorenz.Lammersdorf [at] gmail.com> wrote in message
news:1194347922.263788.41670 [at] z9g2000hsf.googlegroups.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?
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.
Re: webdav / apache 2.2.6
i found a working solution, thanks for your hint.
Re: webdav / apache 2.2.6
On 7 nov, 08:19, Lammi <Lorenz.Lammersd... [at] gmail.com> wrote:
> i found a working solution, thanks for your hint.
Could you trow some light about your solution?
Many thanks
SartDameAveline
Re: webdav / apache 2.2.6
On 8 Nov., 15:30, SartDameAveline <a... [at] swing.be> wrote:
> On 7 nov, 08:19, Lammi <Lorenz.Lammersd... [at] 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
Re: webdav / apache 2.2.6
On 8 nov, 17:00, Lammi <Lorenz.Lammersd... [at] gmail.com> wrote:
> On 8 Nov., 15:30, SartDameAveline <a... [at] swing.be> wrote:
>
> > On 7 nov, 08:19, Lammi <Lorenz.Lammersd... [at] 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