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

Re: xp, smb mounts, shared wc breaks wc management (permissions)

From: D.J. Heap <djheap_at_gmail.com>
Date: 2006-06-20 03:36:05 CEST

On 6/16/06, urs hardegger <uhardegger@gmx.ch> wrote:
> i have seen some recent changes in the repository concerning
> permission-handling in the wc.
>
> as we use shared-working-copies (do NOT discuss this issue here!)
> connected by a smb-share on a windows xp system permission handling
> is peculiarly delicate.
>
> so far all files got automatically group read-writeable for all
> authenticated windows users (and can therefore be altered, deleted,
> renamed etc. without any permission changes).
>
> as on unix based systems permission changes are allowed for owners
> only the smb-share enforces this policy for the windows user as well.
>
> the svn io.c methods handle the permissions (at last on windows) in a
> "brute force" manner (without checking if a permission change is actualy
> required or not).
>
> therefore svn commits can only be done by the owner of the wc.
>
> >svn.exe commit -m "foo" test.doc
> svn: In directory 'P:\smb-share\test-co-by-rw'
> svn: Error processing command 'upgrade-format' in 'P:\smb-share\test-co-by-rw'
> svn: Can't set file 'P:\smb-share\test-co-by-rw\.svn\format' read-write: Access is denied.
>
> on the unix fs:
> unix-03 16:28 test-co-by-rw/.svn > ls -al
> total 24
> drwxrwsr-x 6 rw user 4096 Jun 16 15:39 .
> drwxrwsr-x 3 rw user 32 Jun 16 15:39 ..
> -rw-rw-r-- 1 rw user 120 Jun 16 14:55 README.txt
> -rw-rw-r-- 1 rw user 0 Jun 16 14:55 empty-file
> -rw-rw-r-- 1 rw user 706 Jun 16 14:55 entries
> -rw-rw-r-- 1 rw user 2 Jun 16 14:55 format
> -rw-rw-r-- 1 uh user 2 Jun 16 15:39 format.tmp
> -rw-rw-r-- 1 uh user 0 Jun 16 15:39 lock
> -rw-rw-r-- 1 uh user 757 Jun 16 15:39 log
> drwxrwsr-x 2 rw user 30 Jun 16 14:55 prop-base
> drwxrwsr-x 2 rw user 30 Jun 16 14:55 props
> drwxrwsr-x 2 rw user 30 Jun 16 14:55 text-base
> drwxrwsr-x 6 rw user 64 Jun 16 15:39 tmp
>
> does anybody encountered similar behaviour or are there any solutions
> to this (i.e src-patches) ?
>
> urs

What version of Subversion and APR are you using? Subversion only
changes the read-only flag on Windows -- APR (which Subversion is
built on) doesn't even implement the permission-changing functions on
Win32. If you are using cygwin, then try the native Win32 client.

DJ

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jun 20 03:37:46 2006

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.