Announcement

Collapse
No announcement yet.

how to change file permissions persistently in SVN

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • how to change file permissions persistently in SVN

    I have a file "passwd" that I checked in the first time with permissions 755.
    The I decided that this file shall get the 600 permissions.
    Though I modified it and "svn commit" it to the repo - this leads to an immediatly change of the file permissions back to 755.

    I read about setting the executable permissions via "svn propset svn:executable" - but what about setting the read/write permissions persistently for svn ?

    Any idea ?



  • #2
    In general, access ("read", "read/write", "none") to stuff within a Subversion repository should be controlled by sub-repository path AuthZ (per [url]http://svnbook.red-bean.com/en/1.7/svn.serverconfig.pathbasedauthz.html[/url] ).

    The file permissions are not going to help you much. When I check out a repository I own the working copy and everything in it. Since I can always reprotect it so I can see it, subversion doesn't bother to handle permissions - it just honors the umask. The exception to that is that if you use the "svn:executable" then it will make sure that the file is executable.

    Lots of reasonable information over on [url]https://stackoverflow.com/questions/5953169/avoid-having-subversion-modify-linux-file-permissions[/url]

    Comment


    • #3
      Thanks, for the clear explanation and links !
      [SOLVED]

      Comment

      Working...
      X