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

Re: SVN and windows file permissions

From: Ryan Schmidt <subversion-2005_at_ryandesign.com>
Date: 2005-06-03 20:02:32 CEST

On 02.06.2005, at 17:44, Gregory Piņero wrote:

> http://subversion.tigris.org/faq.html#website-auto-update
> My question is; will subversion maintain the security permissions on
> the files from the live directory? I'm using IIS on Windows server
> 2003 and it's important that it keeps the same permissions because
> otherwise the website breaks.
> If subversion doesn't keep the permissions perhaps a workaround could
> be to have the post-commit script also reset the proper permissions to
> the files since I know what permissions I always want them to have.

My suggestion is that your project should have a "scripts" directory
which is also in the repository. Then you can create a setup script
which should be run every time a new working copy is checked out, or
which could also be run by the post-commit hook after every update.
This way you can define in this script the commands necessary to set
the permissions correctly, and if the procedure ever changes, you just
update the script and check it in. I'm starting to do this on my
projects and think it'll work well. This could be considered equivalent
to the build process done for non-web-site projects to make them work
after checkout. You could even write this script as a makefile if you
really wanted. I personally am using PHP so that we don't have yet
another programming language to think about.

Someone else will have to provide the specifics for doing this in a
Windows shell. For Unix / Linux / BSD / Mac OS X it would of course
just be a set of chmod and possibly chown commands. A PHP script would
also work on Windows, and could, if written properly, be made to work
on both Windows and Unix-like systems.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jun 3 20:06:02 2005

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.