Difference between revisions of "Howto create new svn repos"
From IridiaWiki
Jump to navigationJump to searchLine 1: | Line 1: | ||
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. |
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. |
||
+ | # # REPOS_NAME='<name of your repository>' |
||
⚫ | |||
+ | # # REPOS_PATH='/home/svn' |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
# # useradd REPOSNAME -g REPOSNAME |
# # useradd REPOSNAME -g REPOSNAME |
||
− | # |
+ | # -> Put * instead of ! in /etc/shadow in REPOSNAME line (= no login) |
− | # |
+ | # -> Put all users into group line of REPOSNAME in /etc/group (COMMAS!!) |
− | # |
+ | # -> Put all users into group line of svn_user in /etc/group (for higher level dir access) |
− | # # cd |
+ | # # cd ${REPOS_PATH} |
− | # # chown -R |
+ | # # chown -R ${REPOS_NAME}.${REPOS_NAME} ${REPOS_NAME}/ |
− | # # chmod -R o-rwx |
+ | # # chmod -R o-rwx {REPOS_NAME} |
− | # # cd |
+ | # # cd ${REPOS_NAME} |
− | # # find . -type d -exec chmod 2770 {} \; (2=setgid bit - new files have group of dir, not group of creating user) |
+ | # # find . -type d -exec chmod 2770 {} \; # (2=setgid bit - new files have group of dir, not group of creating user) |
# # find . -type f -exec chmod g+w {} \; |
# # find . -type f -exec chmod g+w {} \; |
Revision as of 12:05, 8 August 2008
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.
- # REPOS_NAME='<name of your repository>'
- # REPOS_PATH='/home/svn'
- # svnadmin create ${REPOS_PATH}/${REPOS_NAME} --fs-type fsfs
- # groupadd ${REPOS_NAME}
- -> remove ! from /etc/gshadow in REPOS_NAME line
- # useradd REPOSNAME -g REPOSNAME
- -> Put * instead of ! in /etc/shadow in REPOSNAME line (= no login)
- -> Put all users into group line of REPOSNAME in /etc/group (COMMAS!!)
- -> Put all users into group line of svn_user in /etc/group (for higher level dir access)
- # cd ${REPOS_PATH}
- # chown -R ${REPOS_NAME}.${REPOS_NAME} ${REPOS_NAME}/
- # chmod -R o-rwx {REPOS_NAME}
- # cd ${REPOS_NAME}
- # find . -type d -exec chmod 2770 {} \; # (2=setgid bit - new files have group of dir, not group of creating user)
- # find . -type f -exec chmod g+w {} \;