Advertisement

08.22.2008 at 01:37AM PDT, ID: 23669543
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.8

Linux Fedora 9 SVN Apache rights issue

Asked by cfpdev in Linux Administration, Fedora Linux, Subversion

Tags:

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
Start Free Trial
[+][-]09.02.2008 at 10:34PM PDT, ID: 22374387

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Linux Administration, Fedora Linux, Subversion
Tags: Linux Fedora 9 SVN Apache rights issue
Sign Up Now!
Solution Provided By: cjl7
Participating Experts: 1
Solution Grade: A
 
 
[+][-]10.12.2008 at 03:31PM PDT, ID: 22699155

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]10.18.2008 at 06:36PM PDT, ID: 22750550

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628