[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 https://192.168.1.1/repos/test
file:///home/SVN/test

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.
"./post-commit"
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.
Thanks

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2364405

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.

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