linux - svn post-commit hook doesn't have permissions to create file in working copy directory -


I'm stuck with that work.

I wrote the committed hook after the SVN, that it should do so to update the copy of the work on the server, if something was changed. But it seems that there is no permission on that folder, but I have set them to allow all to write and read there.

So here's the test script:

  # / bin / sh REPOS = "$ 1" REV = "$ 2" dir = "/ root / root / trunk" $ DIR touch / work  

I've got the output:

  committed revision 51. Warning: 'committed to post-hook' with error output failed: touch: can not touch `/ root / root / trunk / work ': permission denied  

and permissions for the target folder:

 < Code> [root @ ovz6022 trunk] #LS-LA total 24 drawks RAWoxDEX5 Apache Apache 4096 July 26 07:08. drwxrwxrwx 6 Apache Apache 4096 Jul 24 02:14 .. -rwxrwxrwx 1 Apache Apache 1367 Jul 24 02:45 pom.xml drwxrwxrwx 4 Apache Apache 4096 Jul 24 02:23 src drwxrwxrwx 6 Apache Apache 4096 Jul 24 13:31 .svn drwxrwxrwx 7 Apache Apache 4096 July 24 11:18 Goal  

Any ideas?

I think that your problem may be / root directory permissions override any, But root it from reaching something below.

Permissions on my pc / root rwx ------ root:. Root which means I believe as root can use only a few walking down executable

Although my home folder / Home / rich / home / myuser / workdir / trunk < li> Cmda -r 777 / home / Musser /

You need

to ask yourself why you want to have a checkout code in / root. Work as a user, with the minimum permit required for the job . In addition to installation, you should be able to compile and edit your working copy without the need for the highest level of Linux.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -