You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by urs hardegger <uh...@gmx.ch> on 2006/06/16 14:35:33 UTC

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

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

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

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

Posted by "D.J. Heap" <dj...@gmail.com>.
On 6/20/06, urs hardegger <uh...@gmx.ch> wrote:
> i'm using the prebuild subversion 1.3.1 native binaries for windows.
> i encountered the same problem using a self-compiled binary
> from the 1.4 head (last week) using APR 0.9.7.
>
> I checked the toggling of the read-only flag by using the
> windows explorer - it failed as well (permission denied).
> as the read-only flag was not set svn should not try to change it.
>


I'm not sure what you mean.  Subversion does need to toggle the
read-only attribute for svn:needs-lock support as well as for admin
and text-base files during updates, commits, locking, etc.  If Windows
Explorer can't do it, then certainly Subversion is not going to work
-- there must be some network and/or samba problem.

DJ

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

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

Posted by urs hardegger <uh...@gmx.ch>.
i'm using the prebuild subversion 1.3.1 native binaries for windows.
i encountered the same problem using a self-compiled binary
from the 1.4 head (last week) using APR 0.9.7.

I checked the toggling of the read-only flag by using the
windows explorer - it failed as well (permission denied).
as the read-only flag was not set svn should not try to change it.

thx
urs

D.J. Heap wrote:
 >
 > 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
 >

>> On 6/16/06, urs hardegger <uh...@gmx.ch> wrote:
>> i have seen some recent changes in the repository concerning
>> permission-handling in the wc.
>>
>> 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

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

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

Posted by "D.J. Heap" <dj...@gmail.com>.
On 6/16/06, urs hardegger <uh...@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