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
Sybase 12.5 Performancing and Tuning
Entity Relationship model tools
Using MS DataGrid in Microsoft Access 2002/2003
Exchange Journaling Features
Terminal services keep disconnecting
Safari Giberish
SYSERR(root): savemail: cannot save rejected email anywhere
Set initial dir of SHBrowseForFolder function
BEST PRACTICES FOR DEPLOYING FTP
Change file encoding to ansi from utf8 (Win2k)