No announcement yet.

User permission and help or guidance on hooks

  • Filter
  • Time
  • Show
Clear All
new posts

  • User permission and help or guidance on hooks

    I am not a programmer, I am a novice and very new. But I have been reading the subversion book to setup user access, we are using a windows server. I have access to it and add and remove users to my set of repositories. I have been trying to setup user access to certain folders and playing with the auth file, but every time I try to establish a single test user (established a pretend user called Test user) to r or r/w of a folder and turn on the auth file, I get access denied. When I turn off the auth file I can access the repository with the test user. What am I doing wrong? I was wondering also is there any link or can someone provide me a link to tutorials on tortoise svn administration. Also we are using tortoise svn 1.9. Justification for setting up user access is to establish some limitations to try to limit users to keep them from creating branches in their folders. I am a Software Configuration Manager and trying to get some semblance of control of my sw development groups. I also need a link or guidance on hooks as well.

  • #2
    TortoiseSVN is only a client (at least when I last looked). So it's a bit strange to talk about "TortoiseSVN Administration". That said, their documentation is good: [url][/url]

    How are you exporting your repository? Apache? svnserve? Or?

    NOTE WELL: you can't share the repository using SMB, et. al. using the "file://" protocol and have sub-repository path authorization.

    Hook scripts are simply scripts that are run on the server when specific SVN operations occur there. The hooks have specific names. On Windows the names likely have to end in ".bat" or ".exe" (something that Windows knows it should run). The hooks each take a specified set of arguments that are documented and provided by SVN when it runs the hooks. "Pre" hooks are policy enforcers since if the hook exits poorly (non-zero) then the operation will be prevented. "Post" hooks are for automation or notification.