Posted in Howto Linux Security Versioning

Subversion : svnserve over xinetd

November 8, 2006 - 4 comments

If you want to run svnserve through xinetd (documentation still refers to inetd) :

1. Create file /etc/xinetd.d/svnserve :

# default: on
# Subversion server
service svnserve
{
socket_type = stream
protocol = tcp
user = root
wait = no
disable = no
server = /usr/bin/svnserve
server_args = -i -r /path/to/svn/projects
port = 3690
}

/path/to/svn/projects is the repository you want to share, if you don’t use -r, you’d need to specify the full path to the svn repository, which should be avoided.

2. type the following, it will add subversion ports to the list of services.
echo "svnserve 3690/tcp" >> /etc/services
echo "svnserve 3690/udp" >> /etc/services

3. Open tcp/3690 in your firewall

4. Restart xinetd

5. try telnet localhost 3690

6. if succesful, try “svn list svn://localhost/”

7. Try from a remote location

8. If not working, set up tcp_wrappers

svnserve : ALL : allow

This would allow anyone to connect to svnserve

Comments

Bill Horsman

December 8, 2006 - 19:00

Thanks for the tip on svnserve with xinetd. Worked perfectly. An unexpected server reboot today reminded me that I hadn’t set it up properly. Done now.

Ben Haines

February 2, 2007 - 18:14

Thank you another happy customer… got it working in under a minute. Merci Beaucoup!

Robert Jewell

November 24, 2007 - 6:15

Thank you Sébastien and thank you Google.

Iiro

December 22, 2008 - 2:06

Splendid job! :)

Thanks, to you and to Google!! :)

Leave Comment

Please consider visiting the partners below if you enjoyed this article :

If this post saved you time and money, please consider checking my Amazon wishlist.

Before submitting, some rules :
- Is your comment related to the article ?
- You're having a problem ? Have you checked Google, other howtos, docs, manpages ?
- You're still having the problem ? Have you raised log verbosity, checked traces, ran tcpdump ?
- Have you checked your configuratoin for typo ?
Unless your comment is providing additional info or respect the rules above, DON'T comment.
If you don't understand what you are doing, I urge you to read the documentation, I'm not your free Level 1 helpdesk guy.