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

Re: Weird export behaviour on Win2K in post-commit hook

From: John Peacock <jpeacock_at_rowman.com>
Date: 2004-04-15 12:39:59 CEST

tom@opgenorth.net wrote:
> Now when the application tries to use svn export to export
> the directory to the network drive, nothing happens. If I
> tweak my .config file to have the directory to a local
> drive, then the export works.

I'll pile on and say it is ultimately a matter of permissions. Services under
Win32 (like Apache) are typically run under a local, non-priveledged account
(with 3 special rights that permit them to operate as a service). These
accounts, by design, have no rights to any networked resources.

You have two choices, in decreasing order of preference:

1) Do the export to the local drive, then export that folder as a share for your
users to copy files from.

2) Change the user account that Apache runs under to a domain account (with the
three additional rights) - this may be a security hole that you find acceptable
depending on your network layout, i.e. the server is not publically available.
   In this case, you must refer to the networked drive by a full UNC path, i.e.

        \\server\share\path\to\files

since any drive maps are local to a logged in user, and not available to service
accounts.

I have done something like #2 in a different context (e-mail servers) and I can
assure you it is an enormous pain to get right. I strongly recommend #1.

John

p.s. please consider making your post-commit C# code generic enough for others
to use and then post it to the list; this is a very common request, e.g. to keep
a development web server up to date with the repository

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4720 Boston Way
Lanham, MD 20706
301-459-3366 x.5010
fax 301-429-5747
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Apr 15 12:40:17 2004

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