AFP548 Changing the world one server at a time.

pglock

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: Sharing group folders via afp and WebDav #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 1 post (of 1 total)