Yesterday, I mistakenly wrote a post-commit hook that fatally broke my server. In fact, when I committed via TortoiseSVN, I could see the post-commit hook remove significant system resources. When I tried to reboot the server, the server did not boot.
Anyway, I'm about to setup SVN again, and I don't want to make the same mistake. How do I restrict my post-commit hook permissions to only be able to modify certain folders?
What user is SVN running as?
On my system, SVN is running with the Apache user via DAV, so the user it is running as is
www-data
, so it wouldn't have access to critical system resources outside the scope.