I would like to use the SVN repository callback function (Unfuddle) to send the url on my server whenever a commit is made. I have a PHP script that accepts a message and tries to invoke a shell script to execute 'svn update'.
The problem I am facing is that Apache runs under user "www-data" and does not have access to the local repository: ".svn / lock" is allowed. I read all about configuring SUID / SGID on shell scripts and how most * NIX OSs just don't support it due to its security risks.
However, I can set the SUID / SGID bit in the SVN binary located in / usr / bin / svn. This fixes the problem by allowing any user to issue SVN commands in any repository; not the most ideal ...
My question is what is the most logical / robust / safe way to implement this type of setup, and if I left the bits set in the svn binary, would this open a serious security risk that I donβt understand?
Sorry for the long post; this is my first question, and I wanted to be solid.
thank
There are two types of solutions for this kind of problem, survey, or event.
cronjob, , N . , , , . , cron .
, , - , . , . , , www- svn. SGID svn. - /.
, . ssh ( ) ssh . .
sudo -u [user] [command]. /etc/sudoers, www- / , .
sudo -u [user] [command]
/etc/sudoers
SUID/SGID.
CodeRich, cron tue ( , ).
svn SUID/SGID , svn ( , passwd shadow, /etc ). - suid ( SUID , root), chdir svn . ikiwiki, , cgi.
, www-data .
, Apache . , , . :)
, , Apache ( ) , . , , - php script , .
php script cgi fastcgi. , www-, , , , , .
phpSuexec, .
Source: https://habr.com/ru/post/1771425/More articles:HTML message "opens" is not tracked - c #Processing a double variable as boolean - c ++Do you think it is necessary to mark id fields with insertable = false and updatable = false? - javaObjective-C list of third-party iPhone developers? - apiHow to disable the search bar for the audio controller - androidGetting FLV duration with php - phpWhy can't Java polymorphism catch the correct method when choosing between an object and a vector? - javaChange the text on the button in the program - androidHow to avoid a side request? - sqlForcing Paged Forms From Memory - vbaAll Articles