Permissões do WebDAV OSX para restringir o upload

1

Eu tenho um servidor WebDav que estou trabalhando no OSX ML - o acesso é seguro, mas acabei de mover meus arquivos para uma unidade externa

  1. Eu não precisei modificar as permissões de diretório na unidade e ela ainda funciona e requer senha ... ela ainda é tão segura?

  2. Como faço para criar um alias que não exija uma senha, mas que não permita uploads?

    • o acesso que dei agora permitirá o GUEST, mas também permitirá uploads?

A seguir estão meu acesso conf e permissões nessa unidade:

drwxr-xr-x   6 iMac  staff    204 Feb  7 09:54 Download
drwxr-xr-x   5 iMac  staff    170 Feb  5 19:17 STORAGE
drwxr-xr-x   5 iMac  staff    170 Feb  5 19:14 WebDAV

-

# Distributed authoring and versioning (WebDAV)
#
# Required modules: mod_dav, mod_dav_fs, mod_setenvif, mod_alias
#                   mod_auth_digest, mod_authn_file
#

# The following example gives DAV write access to a directory called
# "uploads" under the ServerRoot directory.
#
# The User/Group specified in httpd.conf needs to have write permissions
# on the directory where the DavLockDB is placed and on any directory where
# "Dav On" is specified.

DavLockDB "/usr/var/DavLock"

Alias /webdav "/xyz/WebServer/WebDAV"

<Directory "/xyz/WebServer/WebDAV">
Dav On
Options Indexes MultiViews

Order Allow,Deny
Allow from all
# Add the following line to restrict access to Read or write
Require valid-user

AuthType Digest
AuthName DAV-upload

# You can use the htdigest program to create the password database:
#   htdigest -c "/usr/user.passwd" DAV-upload admin
AuthUserFile "/xyz/uxyz.passwd"
AuthDigestProvider file

# Allow universal read-access, but writes are restricted
# to the admin user.
<LimitExcept GET OPTIONS>
    require user admin
</LimitExcept>
</Directory>


Alias /webdav-private "/Volumes/RAID_MIRROR/WebDAV"

<Directory "/Volumes/RAID_MIRROR/WebDAV">
Dav On
Options Indexes MultiViews

Order Allow,Deny
Allow from all
AuthType Digest
AuthName DAV-Public
AuthUserFile "/xyz/xyz.passwd"
AuthDigestProvider file
<LimitExcept GET OPTIONS>
    #require user public
</LimitEx# Distributed authoring and versioning (WebDAV)

Alias /download "/Volumes/RAID_MIRROR/Download"

<Directory "/Volumes/RAID_MIRROR/Download">
Dav On
Options Indexes MultiViews

Order Allow,Deny
Allow from all
</Directory>

No servidor web real (OSX) (não na unidade externa) estou usando permissões diferentes para permitir que o apache acesse o grupo _www, mas o externo não exige essa restrição?

drwxr-xr-x   2 root  wheel    68 Jun 20  2012 CGI-Executables
drwxr-xr-x  14 root  wheel   476 Jan 20  2013 Documents
drwxrwxrwx  29 _www  _www    986 Jan 21 12:24 WebDAV
drwxrwxrwx  24 _www  _www    816 Mar 18  2013 WebDAV-Public
    
por BarclayVision 08.02.2014 / 17:02

0 respostas