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

Re: How can i setup subversion directory permission to ensure safety?

From: Frank Gruman <fgatwork_at_verizon.net>
Date: Tue, 07 Oct 2008 21:31:00 -0400

On Tue, 2008-10-07 at 19:32 -0500, ying lcs wrote:
> Hi,
>
> I setup subversion on my local machine for my personal project.
> so I did:
> mkdir /path/to/myfirstrepository
> svnadmin create /path/to/myfirstrepository
>
> But if I do that, that directory hierarchy is owned by me. So It is
> possible that I can delete it by mistake.
> Do you have any idea how should I setup the permission so that i can
> check in/out locally and yet be safe from user errors?
>
> Thank you.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
> For additional commands, e-mail: users-help_at_subversion.tigris.org
>
Assuming you are using file:/// access for your local repository, there
is not a way to prevent you from deleting the repository files. It's a
POSIX "feature" that your ability to write also includes the ability to
delete. It may seem like overkill, but you will need to set up svnserve
(simplest) or http access to avoid the situation you mention. Then you
can set the repository owner to some other account so your user account
cannot touch the files.

Check out
http://svnbook.red-bean.com/nightly/en/svn.serverconfig.choosing.html#svn.serverconfig.choosing.svnserve for more information.

Regards,
Frank

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-10-08 03:31:54 CEST

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

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