AFP548 Changing the world one server at a time.

Sharing group folders via afp and WebDav

Home › Forums › OS X Server and Client Discussion › Web › Sharing group folders via afp and WebDav

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #371317
    pglock
    Participant

    I would like the share an existing group folder via webdav on the wiki server page (I.e. Not on a new site) on a 10.5 server. I took a look at the ‘share home folders via webdav’ article but this is very 10.4 specific. I also RTFM’d.

    I’ve tried to set up an alias to /Groups/workgroup as ‘shared’ and set up a realm for this folder to control access to workgroup members only but I get ‘access denied’ messgages when connecting via the finder from a client. Is there an idiot’s guide to WebDav that I could use?

    P.S. I’ve also posted on the Apple discussions with no luck.

    #371327
    pglock
    Participant

    I’ll attempt to answer my own question. I started with this article about sharing home folders on 10.4 server: https://www.afp548.com/article.php?story=20060206105330790

    The GUI way didn’t work for me (couldn’t cope with setting up DAV for an alias directory). I found that I had to do some additional things to get this working for group folders on 10.5 server, and first step is also a big hint to save time at the command line:

    1. Turn on “Show System Accounts in Users & Groups browser” in Server Admin Prefs
    2. Add user “World Wide Web Server” (UID 70 on my system) to the ACL to the group folder you want to share (easy to do once you’ve done step 1). In this example I’m sharing the group “workgroup” via the default website via an ssl session (so Basic auth is OK). I gave www read + write access to all child folders as well.
    3. Manually edit the /etc/apache2/sites .conf file that corresponds to the site you are giving access via to add:

    <Directory "/Groups/workgroup">
    		Options +Indexes
    		<Limit GET HEAD OPTIONS CONNECT POST PROPFIND PUT DELETE PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
    			Require group  workgroup
    		</Limit>
    		AuthType Basic
    		AuthName "workgroup"
    		<IfModule mod_dav.c>
                            DAV On
                    </IfModule>

    and

    	<IfModule mod_alias.c>
    		Alias "/collaboration" "/usr/share/collaboration"
    		Alias "/icons/" "/usr/share/httpd/icons/"
    		Alias "/error/" "/usr/share/httpd/error/"
    		Alias "/workgroup" "/Groups/workgroup"
    	</IfModule>

    Change “workgroup” for your group name.
    4. sudo apachectl -k graceful and you should be good to go.

    Hope this helps someone.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.