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?
Lammi [ Di, 06 November 2007 12:18 ] [ ID #1863735 ]

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?
spam [ Mi, 07 November 2007 03:24 ] [ ID #1864771 ]

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.
Lammi [ Mi, 07 November 2007 08:05 ] [ ID #1864772 ]

Re: webdav / apache 2.2.6

i found a working solution, thanks for your hint.
Lammi [ Mi, 07 November 2007 08:19 ] [ ID #1864773 ]

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
zoot [ Do, 08 November 2007 15:30 ] [ ID #1865736 ]

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
Lammi [ Do, 08 November 2007 17:00 ] [ ID #1865738 ]

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
zoot [ Fr, 09 November 2007 11:35 ] [ ID #1866697 ]
Webserver » alt.apache.configuration » webdav / apache 2.2.6

Vorheriges Thema: SSLVerifyClient optional - how should it work?
Nächstes Thema: Why does Apache have to be built?