You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Je...@cox.com on 2010/03/17 16:40:20 UTC

SVN and Windows/Linux permissions

This might not really be a SVN question, but somebody may have encountered it. I need to be able to export code from windows hosted SVN (Apache/2.0.58 (Win32) DAV/2 SVN/1.3.1) and maintain linux permissions set by linux clients at commit time.   I typically get permissions that omit the group and other permissions, like so:

Y:\ls -altr
total 77
-rwx------+ 1 +Administrators  Domain Users    686 Mar 17 12:25 run.sh

Do I *have* to dl to a linux partition, will windows always strip some unix permissions?


RE: SVN and Windows/Linux permissions

Posted by Je...@cox.com.
Good eye, it is Microsoft SFU. If SVN won't track how I think the devs have asked for it, we'll have to wait until their code is re-factored to obviate the whole problem.  
Thanks much.  

-JDrake


-----Original Message-----
From: Tyler Roscoe [mailto:tyler@cryptio.net] 
Sent: Wednesday, March 17, 2010 1:24 PM
To: Andy Levy
Cc: Drake, Jeff (CCI-Atlanta); users@subversion.apache.org
Subject: Re: SVN and Windows/Linux permissions

On Wed, Mar 17, 2010 at 01:02:10PM -0400, Andy Levy wrote:
> On Wed, Mar 17, 2010 at 12:40,  <Je...@cox.com> wrote:
> > This might not really be a SVN question, but somebody may have encountered
> > it. I need to be able to export code from windows hosted SVN (Apache/2.0.58
> > (Win32) DAV/2 SVN/1.3.1) and maintain linux permissions set by linux clients
> > at commit time.   I typically get permissions that omit the group and other
> > permissions, like so:
> >
> > Y:\ls -altr

How are you running ls on a Windows box? If this is Cygwin, that's
another variable which might alter the permissions on checked-out files.

> > Do I *have* to dl to a linux partition, will windows always strip some unix
> > permissions?
> 
> Subversion doesn't track/manage permissions beyond +x (executable).
> 
> If you're connecting to a SAMBA share from Windows and doing an export
> there, it's down to your SAMBA configuration.

Also, check your umask settings.

tyler

Re: SVN and Windows/Linux permissions

Posted by Tyler Roscoe <ty...@cryptio.net>.
On Wed, Mar 17, 2010 at 01:02:10PM -0400, Andy Levy wrote:
> On Wed, Mar 17, 2010 at 12:40,  <Je...@cox.com> wrote:
> > This might not really be a SVN question, but somebody may have encountered
> > it. I need to be able to export code from windows hosted SVN (Apache/2.0.58
> > (Win32) DAV/2 SVN/1.3.1) and maintain linux permissions set by linux clients
> > at commit time.   I typically get permissions that omit the group and other
> > permissions, like so:
> >
> > Y:\ls -altr

How are you running ls on a Windows box? If this is Cygwin, that's
another variable which might alter the permissions on checked-out files.

> > Do I *have* to dl to a linux partition, will windows always strip some unix
> > permissions?
> 
> Subversion doesn't track/manage permissions beyond +x (executable).
> 
> If you're connecting to a SAMBA share from Windows and doing an export
> there, it's down to your SAMBA configuration.

Also, check your umask settings.

tyler

Re: SVN and Windows/Linux permissions

Posted by Tyler Roscoe <ty...@cryptio.net>.
On Wed, Mar 17, 2010 at 01:02:10PM -0400, Andy Levy wrote:
> On Wed, Mar 17, 2010 at 12:40,  <Je...@cox.com> wrote:
> > This might not really be a SVN question, but somebody may have encountered
> > it. I need to be able to export code from windows hosted SVN (Apache/2.0.58
> > (Win32) DAV/2 SVN/1.3.1) and maintain linux permissions set by linux clients
> > at commit time.   I typically get permissions that omit the group and other
> > permissions, like so:
> >
> > Y:\ls -altr

How are you running ls on a Windows box? If this is Cygwin, that's
another variable which might alter the permissions on checked-out files.

> > Do I *have* to dl to a linux partition, will windows always strip some unix
> > permissions?
> 
> Subversion doesn't track/manage permissions beyond +x (executable).
> 
> If you're connecting to a SAMBA share from Windows and doing an export
> there, it's down to your SAMBA configuration.

Also, check your umask settings.

tyler

Re: SVN and Windows/Linux permissions

Posted by Andy Levy <an...@gmail.com>.
On Wed, Mar 17, 2010 at 13:28,  <Je...@cox.com> wrote:
> The svn:executable property is maintained, the devs need some more granularity unfortunately. We aren't connecting over samba, our export is to local disk.

Subversion doesn't track permissions like you're wanting.

Maybe have your build/export script set the permissions as part of your process?

> -----Original Message-----
> From: Andy Levy [mailto:andy.levy@gmail.com]
> Sent: Wednesday, March 17, 2010 1:02 PM
> To: Drake, Jeff (CCI-Atlanta)
> Cc: users@subversion.apache.org
> Subject: Re: SVN and Windows/Linux permissions
>
> On Wed, Mar 17, 2010 at 12:40,  <Je...@cox.com> wrote:
>> This might not really be a SVN question, but somebody may have encountered
>> it. I need to be able to export code from windows hosted SVN (Apache/2.0.58
>> (Win32) DAV/2 SVN/1.3.1) and maintain linux permissions set by linux clients
>> at commit time.   I typically get permissions that omit the group and other
>> permissions, like so:
>>
>>
>>
>> Y:\ls -altr
>>
>> total 77
>>
>> -rwx------+ 1 +Administrators  Domain Users    686 Mar 17 12:25 run.sh
>>
>>
>>
>> Do I *have* to dl to a linux partition, will windows always strip some unix
>> permissions?
>
> Subversion doesn't track/manage permissions beyond +x (executable).
>
> If you're connecting to a SAMBA share from Windows and doing an export
> there, it's down to your SAMBA configuration.
>

RE: SVN and Windows/Linux permissions

Posted by Je...@cox.com.
The svn:executable property is maintained, the devs need some more granularity unfortunately. We aren't connecting over samba, our export is to local disk.  

-JDrake


-----Original Message-----
From: Andy Levy [mailto:andy.levy@gmail.com] 
Sent: Wednesday, March 17, 2010 1:02 PM
To: Drake, Jeff (CCI-Atlanta)
Cc: users@subversion.apache.org
Subject: Re: SVN and Windows/Linux permissions

On Wed, Mar 17, 2010 at 12:40,  <Je...@cox.com> wrote:
> This might not really be a SVN question, but somebody may have encountered
> it. I need to be able to export code from windows hosted SVN (Apache/2.0.58
> (Win32) DAV/2 SVN/1.3.1) and maintain linux permissions set by linux clients
> at commit time.   I typically get permissions that omit the group and other
> permissions, like so:
>
>
>
> Y:\ls -altr
>
> total 77
>
> -rwx------+ 1 +Administrators  Domain Users    686 Mar 17 12:25 run.sh
>
>
>
> Do I *have* to dl to a linux partition, will windows always strip some unix
> permissions?

Subversion doesn't track/manage permissions beyond +x (executable).

If you're connecting to a SAMBA share from Windows and doing an export
there, it's down to your SAMBA configuration.

Re: SVN and Windows/Linux permissions

Posted by Andy Levy <an...@gmail.com>.
On Wed, Mar 17, 2010 at 12:40,  <Je...@cox.com> wrote:
> This might not really be a SVN question, but somebody may have encountered
> it. I need to be able to export code from windows hosted SVN (Apache/2.0.58
> (Win32) DAV/2 SVN/1.3.1) and maintain linux permissions set by linux clients
> at commit time.   I typically get permissions that omit the group and other
> permissions, like so:
>
>
>
> Y:\ls -altr
>
> total 77
>
> -rwx------+ 1 +Administrators  Domain Users    686 Mar 17 12:25 run.sh
>
>
>
> Do I *have* to dl to a linux partition, will windows always strip some unix
> permissions?

Subversion doesn't track/manage permissions beyond +x (executable).

If you're connecting to a SAMBA share from Windows and doing an export
there, it's down to your SAMBA configuration.