[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

svnadmin create --user --group Attempt #3

From: John Peacock <jpeacock_at_rowman.com>
Date: 2003-11-07 20:43:58 CET

I have attached my latest attempt to automatically create repositories with
appropriate rights/ownership (under sufficiently *nix-like O/S's) to the issue here:

        http://subversion.tigris.org/issues/show_bug.cgi?id=1541

The log message is below (and also attached to the issue).

If this meets with more approval than the last attempt, I will try to get a test
written this weekend (though I will accept any help with Python greatfully!).

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD  20706
301-459-3366 x.5010
fax 301-429-5748
------------
LOG MESSAGE
------------
Implement two new options to the 'svnadmin create' command to explicitely
create a new repository with rights appropriate for either
1) exclusive access by a single user/process
2) shared access by all members of an existing system group
This is likely to only be relevant to Unix-like operating systems,
where chmod(), setgid(), and setuid() are meaningful.
* configure.in
     Add tests to check for existance of chmod, setgid, and setuid
* subversion/svnadmin/main.c
     (#include) - need svn_private_config.h in order to get autoconf #define's
     (enum),(options_table),(cmd_table): add owner_id, group_id to option tables
     (subcommand_create): Add logic to get system UID and GID and switch
     current process to those values before calling svn_repos_create()
     Create empty top level repository directory first and change ownership
* doc/book/book/ch05.xml
     (svn-ch-5-sect-2): Add paragraph and link to discussion of --owner and
     --group options in svn-ch-5-sect-5.
     (svn-ch-5-sect-5): Document the use of --owner and --group to create
     the repository with specific rights for limited repository access.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Nov 7 20:44:27 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.