Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Oct 2006 09:21:51 -0700
From:      Chuck Swiger <cswiger@mac.com>
To:        Nico -telmich- Schottelius <nico-freebsd-questions@schottelius.org>
Cc:        Wojciech Puchar <wojtek@tensor.3miasto.net>, freebsd-questions@freebsd.org, Patrik Jansson <fbsd@aleborg.se>
Subject:   Re: ACL: Default and other problems
Message-ID:  <04240A60-27E8-4064-A80D-83731E345DF0@mac.com>
In-Reply-To: <20061024083207.GA2910@schottelius.org>
References:  <20061018141753.GA12559@schottelius.org> <45372B7C.9010201@aleborg.se> <20061023113333.GA22430@schottelius.org> <20061023194301.I96174@chylonia.3miasto.net> <20061024083207.GA2910@schottelius.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Oct 24, 2006, at 1:32 AM, Nico -telmich- Schottelius wrote:
> Situation:
>    - git running on fbsd 5.3.
>    - 4 people work on the same project
>    - git is used over ssh (aka git+ssh://)
>    - when new objects are created, they belong to the creating user
>    - normal umask is 077 (we are all paranoid)
>
> We want that every newly created file and directory is modifyable
> by any user of the 'git' group.

Have git be setgid to this git group and call umask() to 027.
Or write a trivial shell-script wrapper to reset the umask, if you  
want to do it that way.

> Now I am interested on how you would solve this problem with standard
> Unix-Ids without using external tools (like callin chown/chgrp/chmod
> each update).

This constraint makes the problem impossible to solve.  Either you  
are interested in the impossible, or you aren't really looking to  
solve the problem using standard Unix mechanisms...

-- 
-Chuck




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?04240A60-27E8-4064-A80D-83731E345DF0>