On Wed, Dec 2, 2015 at 3:07 PM, Philip Martin <philip.mar...@wandisco.com>
wrote:

> foven <effo...@gmail.com> writes:
>
> > On Wed, Dec 2, 2015 at 11:28 AM, <jbl...@icloud.com> wrote:
> >
> >>
> >> > On Dec 2, 2015, at 9:11 AM, foven <effo...@gmail.com> wrote:
> >> >
> >> > Thanks for the reply.
> >> >
> >> > If the user running the script just needs to have read and execute
> >> > permission, then if the file has permissions like this:
> >> >
> >> > -rwxr-xr-x  1 phd  phd     37 Nov 18 14:39 pre-commit
> >> >
> >> > shouldn't it work no matter who the user running the script is?
> >> >
> >> > That is how the permissions have been set on the script all this time,
> >> > but although the file:// protocol works, svn+ssh:// has always given
> >> > the error message being discussed.
>
> The ssh user also need read access to the parent hooks/ directory.
>
> --
> Philip Martin
> WANdisco
>

This is how the hooks directory looks at the moment.
It seems reasonable to me, does anything look wrong?

    sudo ls -la /var/repo/SVN/hooks/
    total 48
    drwxr-xr-x. 3 phd phd 4096 Dec  2 14:30 .
    drwxr-xr-x. 6 phd phd 4096 Dec  2 13:25 ..
    -rwxr-xr-x. 1 phd phd 2062 Oct 27 10:17 post-commit.tmpl
    -rwxr-xr-x. 1 phd phd 1638 Oct 27 10:17 post-lock.tmpl
    -rwxr-xr-x. 1 phd phd 2289 Oct 27 10:17 post-revprop-change.tmpl
    -rwxr-xr-x. 1 phd phd 1567 Oct 27 10:17 post-unlock.tmpl
    -rwxr-xr-x  1 phd phd   37 Nov 18 14:39 pre-commit
    drwxr-xr-x. 2 phd phd   19 Nov 17 17:05 pre-commit-phabricator.d
    -rwxr-xr-x. 1 phd phd 3426 Nov 12 15:59 pre-commit.tmpl
    -rwxr-xr-x. 1 phd phd 2434 Oct 27 10:17 pre-lock.tmpl
    -rwxr-xr-x. 1 phd phd 2786 Oct 27 10:17 pre-revprop-change.tmpl
    -rwxr-xr-x. 1 phd phd 2122 Oct 27 10:17 pre-unlock.tmpl
    -rwxr-xr-x. 1 phd phd 3163 Oct 27 10:17 start-commit.tmpl

Also, the main repository directory:

    sudo ls -la /var/repo/SVN/
    total 156
    drwxr-xr-x. 6 phd phd   4096 Dec  2 13:25 .
    drwxr-xr-x. 5 phd phd     44 Nov 19 13:15 ..
    drwxr-xr-x. 2 phd phd     72 Dec  1 16:40 conf
    drwxr-sr-x. 6 phd phd   4096 Dec  2 14:23 db
    -r--r--r--. 1 phd phd      2 Oct 27 10:17 format
    drwxr-xr-x. 3 phd phd   4096 Dec  2 15:20 hooks
    drwxr-xr-x. 2 phd phd     39 Oct 27 10:17 locks
    -rw-r--r--. 1 phd phd    246 Oct 27 10:17 README.txt

Reply via email to