savannah-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Savannah-cvs] [70] Clarify svn repository permissions and ownership.


From: Bob Proulx
Subject: [Savannah-cvs] [70] Clarify svn repository permissions and ownership.
Date: Mon, 10 Feb 2014 00:29:30 +0000

Revision: 70
          http://svn.sv.gnu.org/viewvc/?view=rev&root=administration&revision=70
Author:   rwp
Date:     2014-02-10 00:29:25 +0000 (Mon, 10 Feb 2014)
Log Message:
-----------
Clarify svn repository permissions and ownership.

Add section about creating a respository using "svnadmin create" and
how to fix up the file ownership and permissions in that case.

Modified Paths:
--------------
    trunk/sviki/AdminSvnImport.mdwn

Modified: trunk/sviki/AdminSvnImport.mdwn
===================================================================
--- trunk/sviki/AdminSvnImport.mdwn     2014-02-09 22:16:27 UTC (rev 69)
+++ trunk/sviki/AdminSvnImport.mdwn     2014-02-10 00:29:25 UTC (rev 70)
@@ -1,6 +1,14 @@
+Importing History Into Subversion
+=================================
+
+With Supplied History
+---------------------
+
 For Savannah administrators: here's how to import an SVN repository.
 
 Make sure that SVN is already enabled for the project (Select Features).
+This will create the svn repository with the correct ownership and
+permissions.
 
 You need to ask the project developers to create an SVN dump as
 explained at [[SvnImportExistingRepo]].
@@ -37,3 +45,24 @@
 prevent further commit access there.
 
 * [[CvsDisabling]]
+
+Manually Creating A Subversion Repository
+-----------------------------------------
+
+If as a root admin you manually create a subversion repository then
+the files will be set too user:group root:root and the permissions
+will be restricted by the root umask 022.  These will need to be
+converted to the project group and permissions.
+
+    proj=THEIRPROJECT
+    svnadmin create /srv/svn/$proj
+    find /srv/svn/$proj/db -type d -exec chmod g+ws {} +
+    find /srv/svn/$proj/db -type d -exec chgrp $proj {} +
+    find /srv/svn/$proj/db -type f -exec chgrp $proj {} +
+
+In particular be sure to leave the "hooks" directory (along with the
+others) owned by root:root and with secure permissions only for the
+root user.
+
+These steps are all done automatically when the repository is created
+through the project web interface.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]