Using svnserve securely
From: Sebastian Tennant <sebyte_at_gmail.com>
Date: Tue, 26 Feb 2008 15:26:55 +0200
Hi list,
How to deploy svnserve securely _and_ provide local read/write access to
_Feedback most welcome_.
For security reasons you should always run publically accessible
$ ls -ld /usr/bin/svnserve
Now, for svnserve to have write access to the repository, the repository
$ ls -ld /var/svn-repository
In terms of EUID and directory permissions svnserve is now securely
We can give /usr/bin/svn write access to the repository by doing what we
Also, when a user checks out a batch of new files from the repository
No, we need to find a way to give /usr/bin/svn write access to the
Enter *nix groups.
Create an 'svn' system group, make 'svn' the group to which /usr/bin/svn
$ ls -ld /usr/bin/svn
Now make the repository writable for members of the group 'svn':
$ ls -ld /var/svn-repository
Finally, you also need to make the other /usr/bin/svn* executable files
To summarise:
$ ls -ld /usr/bin/svnserve /usr/bin/svn /var/svn-repository
Your repository is secure (non-world-writable) whilst granting
Sebastian
---------------------------------------------------------------------
|
This is an archived mail posted to the Subversion Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.