|
Created on 2008-10-29.17:30:50 by attila.lendvai, last changed 2017-07-30.23:34:55 by gh.
msg6521 (view) |
Author: attila.lendvai |
Date: 2008-10-29.17:30:47 |
|
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.
|
msg6594 (view) |
Author: ganesh |
Date: 2008-11-05.11:50:07 |
|
A 0002 default means defaulting to insecure, which is very dangerous - on
systems without "user private groups", it could lead to people's private
repositories becoming writable by any user on the system.
|
msg8356 (view) |
Author: kowey |
Date: 2009-08-22.16:16:37 |
|
OK, summarising: lots of users makes the ~/.darcs/defaults solution impractical
as does lots of repositories. The default 0002 solution is unsafe.
This leaves us with the option of implementing some sort of system-wide
configuration.
Are there any alternatives?
How do other revision control systems deal with this situation? Could somebody
go research this and report back?
|
|
Date |
User |
Action |
Args |
2008-10-29 17:30:50 | attila.lendvai | create | |
2008-11-05 11:50:09 | ganesh | set | status: unread -> unknown nosy:
+ ganesh messages:
+ msg6594 |
2009-08-10 23:49:55 | admin | set | nosy:
- dagit |
2009-08-22 16:16:39 | kowey | set | status: unknown -> needs-reproduction nosy:
kowey, ganesh, attila.lendvai, simon, thorkilnaur, dmitry.kurochkin messages:
+ msg8356 |
2009-08-25 17:33:03 | admin | set | nosy:
+ darcs-devel, - simon |
2009-08-27 14:29:39 | admin | set | nosy:
kowey, darcs-devel, ganesh, attila.lendvai, thorkilnaur, dmitry.kurochkin |
2009-10-23 22:34:45 | admin | set | nosy:
+ attila_lendvai, - attila.lendvai |
2009-10-23 23:48:44 | admin | set | nosy:
+ attila.lendvai, - attila_lendvai |
2017-07-30 23:34:55 | gh | set | status: needs-reproduction -> given-up |
|