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

svn post-commit problem with samba mount point

From: J. Bakshi <joydeep_at_infoservices.in>
Date: Tue, 23 Jun 2009 11:31:06 +0530

Dear all,

My subversion is working well and post-commit hook also runs "svn up"
successfully when the working copy is in the same server.

The problem occurs when the working directory is on a samba mount point.
Here is the post-commit hook for a samba mount point.

#! /bin/bash

# Just run once
#svn switch --relocate

svn up /mnt/htdocs_192.168.1.3/svntest


on the samba server the svntest has 777 permission with apache:apache
access right.
Samba is configured with

force user = apache
force group = apache
force security mode = 0777
force directory security mode = 0777


Hence if I create any file/folder on the mount point it automatically
gets apache permission rights with 777 access.

the post-commit hook runs well when directly executed from shell i.e.
But If I commit the changes error comes from hook as

Warning: 'post-commit' hook failed with error output:
svn: Can't open file '.svn/lock': Permission denied
svn: Can't open file '/mnt/htdocs_192.168.1.3/svntest/.svn/lock':
Permission denied


Why still the permission problem when the folders have 777 permission
and more over samba creates new file with 777 ?
Please suggest.


To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-06-23 08:02:09 CEST

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