Microsoft
Software
Hardware
Network
Question : Linux Fedora 9 SVN Apache rights issue
Hi
we run SVN on our dev box and handle it via TortoiseSVN on client's site and Apache on dev box.
Everything works fine until we want auto export codes into html directory (which is fact apache DocumentRoot) on the same box.
We run post-commit hooks script which is fine.
The problem comes when the html directory is owned by diffrent user - web_sites
LISTING:
drwxrwxr-x 9 web_sites web_sites 4096 2008-08-21 17:32 html
and apache user is running export script into html directory
POST-COMMIT SCRIPT:
svn export --force file:///var/svn/repository
/project /var/www/html/
My solution to that was to add apache user into web_sites group and chmod 775 right to html directory but this doesn't work whilst running running post-commit script invoked by TortoiseSVN SVN commit action.
I tried changed owner of public_html directory owneship to apache and works fine but there are other reasons to have web_sites user as owner for html directory.
Apache user is member of web_sites group. Snippet from /etc/group:
web_sites:x:506:apache
I got into a point to create the svn export but it's than owned by apache user and adding:
sudo chown -R web_sites:web_sites /var/www/html
into post-commit script doesn't work. ( I did edit visudo with apache ALL=(ALL) NOPASSWD: ALL - which is quite bad I know but it's a local box...)
The question is if I'm missing something or do you have any other approach to this system?
Thanks
Rad
Answer : Linux Fedora 9 SVN Apache rights issue
Hi,
You might want to add chmod g+s /var/www/html so that any file created there will be owned by the right group.
Another solution would be to do a 'svn co' from cron as the correct user.
//jonas
Random Solutions
more jscript regex strip string help
installing J9 JVM on Windows Mobile 5.0
Toshiba Tecra 8100 Multimedia Audio Controller Problem
Sorting listbox Rowsource
Active Directory users profiles not always mapping correctly
Finding the right permutation of a list of words
Pagemaker error while exporting "No valid ppd files were found. Check the ppd4 directory in usenglish."
Statement must appear within on handler????
How to create a simple form on Sharepoint?
Best Practices For Upgrading To 2003 Native Domain?