[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: BOOK - svnserve and inetd information

From: Carey Evans <careye_at_spamcop.net>
Date: 2004-03-12 08:27:40 CET

Steve Karg wrote:

> In getting svnserve to work with inetd, I had to dig outside of the
> manual a bunch, so here are some things I think you should add to the
> manual

[...]

> $ sudo adduser svn
> $ sudo rm -rf /home/svn
> $ sudo mkdir /home/svn
> $ sudo chown svn:svn /home/svn

This can be done a bit more easily (on Debian, anyway) by doing:

# adduser --system --group svn

You probably then want to do:

# chmod g+ws /home/svn

> I created the repository:
> $ su - svn
> $ svnadmin create repository

[...]

> In order to have inetd launch the process, I had to add the following to
> the /etc/inetd.conf file:
>
> svnserve stream tcp nowait svn /usr/sbin/tcpd /usr/bin/svnserve --inetd
> --root=/home/svn/repository

I've done something similar with xinetd, creating a new file
/etc/xinetd.d/svnserve, and putting the following in it:

service svnserve
{
         socket_type = stream
         wait = no
         bind = 127.0.0.1
         server = /usr/bin/svnserve
         server_args = -i -r /home/svn
         user = svn
         umask = 002
}

Setting the root to /home/svn lets me create as many repositories there
as I like, the umask makes sure I can access them as another user if I
need to, and the bind makes sure that nobody but me can even connect to
the server.

-- 
"Hanging is too good for a man who makes puns; he should be drawn and 
quoted."
         -- Fred Allen

Received on Fri Mar 12 08:28:13 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.