开发者

How to mask delete on files in Subversion

开发者 https://www.devze.com 2022-12-17 20:41 出处:网络
i am trying to setup a Subversion repository with Apache httpd, everything looks good so far. But there is one major bottleneck i am facing. The access rights to files is plane and painful. For any va

i am trying to setup a Subversion repository with Apache httpd, everything looks good so far. But there is one major bottleneck i am facing. The access rights to files is plane and painful. For any valid user to get and commit file we need t开发者_Go百科o have rw access. And there is no provision to mask the delete option on files. Any user who has rw access can intentionally or by accident delete a file in the repository which is a threat. I am not sure how good is the hook scripts. With Subclipse client in eclipse i have the provision to browse through the archive and delete a file. How do i prevent this, or better handle use access over files in SVN archive. Please share your thoughts. Thanks.


If people can access (i.e. "read" privilege) your repository to make modifications (i.e. "write" privilege), it seems normal that they can also delete files -- which is some kind of modification.

But, no matter what is done by anyone on your SVN repository, it's always possible to revert a modification : any modification can be "cancelled" -- even suppression/delete of files/directory.

So, if someone does anything (be it a "wrong" modification, or a "wrong" deletion), there is always a way to revert to the previous revision of any file (and not only the "previous" revision, but "any" revision).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号