[darcs-devel] [issue1185] default umask for files created by darcs push through ssh

Attila Lendvai bugs at darcs.net
Wed Oct 29 17:30:50 UTC 2008


New submission from Attila Lendvai <attila.lendvai at gmail.com>:

it's a typical use-case that a unix server is used for sharing a darcs repo.
unix groups are created for each project, and members are added to the group.

the problem is that by default most systems don't include group write permission
in the default umask, so darcs creates non-group-writable files when a darcs
push operation creates a file on the server.

there are two solutions for this currently:
   1. add the line "apply umask 0002" to _darcs/prefs/defaults
   2. add the line "apply umask 0002" to ~/.darcs/defaults

but this is a lot of headache if you have 30+ projects and 30+ users on a server...

one possible solution would be a /etc/something (or some other means) to control
system-wide defaults for darcs. another solution would be to use 0002 as the
default umask.

i think i'd do both. the rationale for the default is that this is by far the
most common use-case, and those few for whom it's not good they can override it.

----------
messages: 6521
nosy: attila.lendvai, dagit, dmitry.kurochkin, kowey, simon, thorkilnaur
priority: feature
status: unread
title: default umask for files created by darcs push through ssh

__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue1185>
__________________________________


More information about the darcs-devel mailing list