Subversion - svnserve over xinetd

categories:

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

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

# default: on 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.

  1. 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

  2. Open tcp/3690 in your firewall

  3. Restart xinetd

  4. try telnet localhost 3690

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

  6. Try from a remote location

  7. If not working, set up tcp_wrappers

svnserve : ALL : allow

This would allow anyone to connect to svnserve




Thanks for reading this post!


If you found an issue in this article, you can create an issue on Github.

If you have a comment or question, please drop me a line below!