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
Cannot log in to CompanyWeb or Sharepoint Central Administration
Which RPM does libhistory.so.5 reside in
Checking server status
PXE Booting to Ghost with Multiple NIC Drivers
Need Exchange 2003 POP3 connector to leave mail on server
Folder redirection permission question
Top 5 query in SQL 7.0
uncheck individual checkbox in option frame
OEM WinXPPro: Changing Processors
in netbackup 5.0 how can I change the location of the log files on the client