Howto create new svn repos

From IridiaWiki
Revision as of 09:10, 7 August 2008 by Rogrady (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

You will need root access to the iridia server. Standard place to put repositories is /home/svn. Some legacy repositories are in /usr/local/share/svn_repositories.

  1. # svnadmin create <path to repos>/REPOSNAME --fs-type fsfs
  2. # groupadd REPOSNAME
  3. # remove ! from /etc/gshadow in REPOSNAME line
  4. # useradd REPOSNAME -g REPOSNAME
  5. # Put * instead of ! in /etc/shadow in REPOSNAME line (= no login)
  6. # Put all users into group line of REPOSNAME in /etc/group (COMMAS!!)
  7. # Put all users into group line of svn_user in /etc/group (for higher level dir access)
  8. # cd <path to repos>
  9. # chown -R REPOSNAME.REPOSNAME REPOSNAME/
  10. # chmod -R o-rwx REPOSNAME
  11. # cd REPOSNAME
  12. # find . -type d -exec chmod 2770 {} \; (2=setgid bit - new files have group of dir, not group of creating user)
  13. # find . -type f -exec chmod g+w {} \;