dialsc n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 09 Dec 2007 Posts: 31 Location: Switzerland
|
Posted: Tue Aug 19, 2008 3:24 pm Post subject: |
|
|
hi,
unfortunately i cannot answer your whole question but the thing about the apache user/group i think i know. this is because its a very common setup to access the svn repository(ies) through webDav@httpd. as the httpd is almost the apache http server, the script uses the apache user and group in order to be able to access and edit the repository at the disk.
on my site i did something different in order to solve access problems. i set up a dedicated user group called svnusers and added the apache user to that group. i than created (or did portage that for me?) the user svn. within the file /etc/conf.d/svnserve i configured three things. here it is:
Code: |
# The commented variables in this file are the defaults that are used
# in the init-script. You don't need to uncomment them except to
# customize them to different values.
# Options for svnserve
#SVNSERVE_OPTS="--root=/var/svn"
SVNSERVE_OPTS="--root=/data/svnroot/repos"
# User and group as which to run svnserve
SVNSERVE_USER="svn"
SVNSERVE_GROUP="svnusers"
|
as you can see, user and group is set to svn:svnusers. this is, what the start script uses. what you see at the start script - the apache user/group - is just the fall back used in case one or both of the parameters SVNSERVE_USER and SVNSERVE_GROUP is/are not defined. only then apache will be used.
i hope this makes things a bit more clear.
greez,
dialsc |
|