From owner-freebsd-questions@FreeBSD.ORG Mon Dec 27 20:17:30 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2833D16A4CE for ; Mon, 27 Dec 2004 20:17:30 +0000 (GMT) Received: from mtiwmhc12.worldnet.att.net (mtiwmhc12.worldnet.att.net [204.127.131.116]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8AF0643D1F for ; Mon, 27 Dec 2004 20:17:25 +0000 (GMT) (envelope-from dwinner-lists@worldnet.att.net) Received: from [10.10.100.62] (unknown[216.113.237.29]) by worldnet.att.net (mtiwmhc12) with ESMTP id <2004122720171711200mhl5pe> (Authid: duanewinner); Mon, 27 Dec 2004 20:17:17 +0000 Message-ID: <41D06DEC.2050605@att.net> Date: Mon, 27 Dec 2004 15:17:48 -0500 From: Duane Winner User-Agent: Mozilla Thunderbird 1.0 (X11/20041210) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: permissions question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Dec 2004 20:17:30 -0000 Hello, I don't know if I am having a brainfart, something is different, or if I never had it right to begin with: I need to have a shared directory for apache web content: /usr/local/htmlstuff And a group, "htmlguys", and several users will be members of that group. I would like to have the root directory set up like this: drwxrwxr-x 2 me htmlguys 512 Dec 27 15:06 htmlstuff Where "htmlguys" is the owner. Any member of htmlguys must be able to read, write and create any file or folder in htmlstuff, and the group owner of any file or folder in there must still be set to "htmlguys", so that one group member can edit another group member's file. They should be able to delete files and folders that they did not create as well. When I ran apache on a Redhat box, I thought I just ran: # chmod 2770 on htmlstuff and that did the trick for me. Any time a member of htmlguys creates a new file in there it will be automatically be owned by the user who created it and the group "htmlguys". But that doesn't seem to work on FreeBSD. I always referred to that '2' before '770' as the 'sticky bit' for the group, but I was reading up on setuid, setguid and sticky bits this morning, and obviously, I had it all wrong. But I know that it "did" work on Redhat (I still have that server in production, and tested it, so I know that works). So I'm quite confused now, and can't find any documents that describe how to do what I need. Can anybody help me out with this? Thanks, DW