0

I am using svn+ssh to interact with repositories. I would like to know if there is any mechanism to retrict users to only a set of svn commands, for example, to prevent the use of locks.

In the worst case scenario, if I have to modify the source code, any pointers to which file needs to be modified would also help. I see that there is svnserve.c file but a quick review tells me that that may not be the right file to look at.

1 Answer 1

1

You can prevent the use of locks with pre-lock and pre-unlock hook scripts. Make the hook exit with any code besides 0 and users won't be able to lock or unlock files. E.g., add a hook with just one line

exit 1
Sign up to request clarification or add additional context in comments.

1 Comment

Just checked, before accepting your answer, that hooks are available for commands other than lock. They are.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.