You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Ralph Becket <ra...@cs.mu.OZ.AU> on 2004/03/11 01:32:35 UTC

Changing permissions on files in the repository

I'm sure this question must have been asked before, but I haven't had
much luck googling for the answer or searching in the mailing list
archives, so I hope someone can help me out.

My problem is that I checked some files into my Subversion repository
and now I want to change the permissions on them such that next time I
check them out these files are neither group nor world readable.  

Simply chmodding the files and then doing `svn ci' doesn't achieve
anything.

My question: is there a simple solution?

Ta,
-- Ralph

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

Re: Changing permissions on files in the repository

Posted by Nuutti Kotivuori <na...@iki.fi>.
C. Michael Pilato wrote:
> Robert Guthrie <rg...@pobox.com> writes:
>> I'm curious if client-side scripting has been discussed amongst the
>> developers.  It'd be kind of nice to have the svn command hook into
>> scripts to do this kind of thing, instead of making a wrapper for
>> svn.
>
> I know I've had some chats about it with folks.  Major concerns
> involved security, IIRC.  Don't remember much more about the
> discussions, though.

http://subversion.tigris.org/issues/show_bug.cgi?id=1152

-- Naked

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

Re: Changing permissions on files in the repository

Posted by "C. Michael Pilato" <cm...@collab.net>.
Robert Guthrie <rg...@pobox.com> writes:

> I'm curious if client-side scripting has been discussed amongst the
> developers.  It'd be kind of nice to have the svn command hook into
> scripts to do this kind of thing, instead of making a wrapper for
> svn.

I know I've had some chats about it with folks.  Major concerns
involved security, IIRC.  Don't remember much more about the
discussions, though.

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

Re: Changing permissions on files in the repository

Posted by Robert Guthrie <rg...@pobox.com>.
I'm curious if client-side scripting has been discussed amongst the 
developers.  It'd be kind of nice to have the svn command hook into 
scripts to do this kind of thing, instead of making a wrapper for svn.

Ben Collins-Sussman wrote:
> Depending on what you classify as a simple solution you could possibly 
> get the desired effect by using a wrapper script that sets the umask to 
> block group and other access (haven't tried it myself so may or may not 
> work) the other approach is to use svn properties to record what the 
> file permissions should be and have a script that  does the chmod after 
> a checkout. Have a look at 
> http://www.contactor.se/~dast/svnusers/archive-2003-08/0255.shtml 
> <http://www.contactor.se/%7Edast/svnusers/archive-2003-08/0255.shtml> 
> for a version I wrote last year.
> 
> Ross
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org

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

Re: Changing permissions on files in the repository

Posted by Ross Mark <ro...@controllingedge.com.au>.
Ben Collins-Sussman wrote:

> Ralph Becket wrote:
>
>> My problem is that I checked some files into my Subversion repository
>> and now I want to change the permissions on them such that next time I
>> check them out these files are neither group nor world readable. 
>> Simply chmodding the files and then doing `svn ci' doesn't achieve
>> anything.
>>
>> My question: is there a simple solution?
>>
>
> No, svn has no system for preserving permissions, or tweaking them.  
> The only feature that is "close" is setting the svn:executable 
> property, which causes files to be +x in the working copy.
>
Depending on what you classify as a simple solution you could possibly 
get the desired effect by using a wrapper script that sets the umask to 
block group and other access (haven't tried it myself so may or may not 
work) the other approach is to use svn properties to record what the 
file permissions should be and have a script that  does the chmod after 
a checkout. Have a look at 
http://www.contactor.se/~dast/svnusers/archive-2003-08/0255.shtml 
<http://www.contactor.se/%7Edast/svnusers/archive-2003-08/0255.shtml> 
for a version I wrote last year.

Ross



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

Re: Changing permissions on files in the repository

Posted by Ben Collins-Sussman <su...@collab.net>.
Ralph Becket wrote:

> I'm sure this question must have been asked before, but I haven't had
> much luck googling for the answer or searching in the mailing list
> archives, so I hope someone can help me out.
> 
> My problem is that I checked some files into my Subversion repository
> and now I want to change the permissions on them such that next time I
> check them out these files are neither group nor world readable.  
> 
> Simply chmodding the files and then doing `svn ci' doesn't achieve
> anything.
> 
> My question: is there a simple solution?
> 

No, svn has no system for preserving permissions, or tweaking them.  The 
only feature that is "close" is setting the svn:executable property, 
which causes files to be +x in the working copy.


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