Youry's Blog

Youry's Blog

CVS and SVN setup on MAC Server and user admin

leave a comment »

  • User admin
    • Identify an unused user ID by using the dscl tool:
      dscl /LDAPv3/ipaddress -list /Users UniqueID| awk ’{print $2}’ | sort -n

I use different sources and trying to recreate it for my server. I’ve tried to play with Web Server – doesn’t work through Server manager. I use my personal SVN repository within my user account, but now I need to have group access to the repository for an on-line collaboration. Maybe the guideline below will work for me.

OK. Let start (from

  1.  sudo mkdir -p /usr/local/svn/repos
  2. sudo chgrp _developer /usr/local/svn/repos
  3. sudo chmod g+w+s /usr/local/svn/reposSet the file mode creation mask to give the group write permissions to the repository we are about to create.
  4. umask 002
  5. svnadmin create /usr/local/svn/repos/<project_name>And set the user mask to the default value.
  6. umask 0227.
  7. cd ~
  8.   svn co file:///usr/local/svn/repos/<project_name>
  9.  cd <project_name>
  10.  svn mkdir branches tags trunk
  11.  svn ci -m “initial structures”Now, let’s enable remote access to the repository.
  12.  sudo vi /usr/local/svn/passwd-developers
    The structure of the file should be as follows:
    <user_1> = <password_1>
    <user_2> = <password_2>
    <user_3> = <password_3>Save the file and change its permissions, so it’s only readable by the owner (root).
  13. sudo chmod 600 /usr/local/svn/passwd-developers
  14.  vi /usr/local/svn/repos/<project_name>/conf/svnserve.conf
  15. Paste the following after [general] (line 8):
    anon-access = none
    password-db = /usr/local/svn/passwd-developers
    realm = developers
  16.  sudo svnserve -d –foreground -r /usr/local/svn/repo
  17.  svn checkout svn+ssh://<server_ip>/usr/local/svn/repos/<project_name> –username <user>

As I expected – doesn’t work. Spend several hours – doesn’t work. Works only for the administrator account.

After some investigation found very strange behaviour – works in a such way (with double password request):

svn checkout svn+ssh://username@<server_ip>/usr/local/svn/repos/<project_name>

Found another interesting paper:

For Fedora and SVN HTTP see


Written by youryblog

June 14, 2012 at 9:24 PM

Posted in IT, MacOS

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: