Administering Subversion for SECANT

This page gives some notes on the subversion setup at See the companion page for user information.

User Administration

As users provide me with an SSH key for repository access, I add a line to .ssh/authorized_keys of this form:

command="/opt/csw/bin/svnserve -t -r repository --tunnel-user=USER",no-port-forwarding,no-agent-forwarding,no-X11-forwarding,no-pty ssh-rsa KEY COMMENT

where USER is the UNIX login id of the user and KEY is the public ssh key (a long ASCII string). COMMENT is typically the user's email address. This string and approach to access and authentication is described here.

Repository Creation

The repository was created with the command:

% svnadmin create repository --config-dir .

while logged in to as user cp-wiki in /homes/cp-wiki directory. (The ”–config-dir .” option is to avoid an error message caused by the fact that user cp-wiki cannot access my home directory, where it is trying to read my non-existent personal configuration information.)

The initial repository contents, including templates for project1 and project2, were created using these commands; executed from my personal account on arthur (note that the .ssh key must be installed per instructions in previous section):

% mkdir tmp-repo
% cd tmp-repo
% mkdir project1 project2
% mkdir project1/branches project1/tags project1/trunk
% mkdir project2/branches project2/tags project2/trunk
% touch project1/trunk/
% touch project2/trunk/
% svn import svn+ssh://
svn-admin.txt · Last modified: 2007/11/21 11:16 by jtk
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki