Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 671583
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T00:23:24+00:00 2026-05-14T00:23:24+00:00

I’ll try my best to explain how I’m trying to set up this system.

  • 0

I’ll try my best to explain how I’m trying to set up this system.

Imagine a production server running WHM with various sites. We’ll call these sites… site1, site2, site2

Now, with the WHM setup, each site has a user/group defined for them, we’ll keep these users/groups called site1,site2 for simplicity reasons.

Now, updating these sites is accomplished using SVN, and through the use of a post commit script to auto update these sites (With .svn blocked through the apache configuration).

There are two regular maintainers of these sites, we’ll call them Joe and Bob. Joe and Bob both have commandline access to the server through thier respective limited accounts.

So I’ve done the easy bit, managed to get SVN working with these “maintainers” so that when an SVN commit occurs, the changes are checked out and go live perfectly.

Here’s the cavet, and ultimately my problem. User permissions.

Through my testing of this setup, I’ve only managed to get it working by giving what is being updated permissions of 777, so that Joe and Bob can both read and write access to webfront directories for each of the sites.

So, an example of how it’s set up now:

Joe and Bob both belong to a group called “Dev”. I have the master /svn folders set up for both read and write access to this group, and it works great. Post commit triggers, updates the site, and then sets 777 on each file within the webfront.

I then changed this to try and factor in group permission updates, instead of straight 777.

Each folder in /home/site1/public_html intially gets given a chmod of 664, and each folder 775

Which looks a little something like this

drwxrwxr-x .
drwxrwxr-x ..
drwxrwxr-x site1 site1 my_test_folder
-rw-rw-r-- site1 site1 my_test_file

So site1 is sthe owner and group owner of those files and folders. So I then added site1 to Joe and Bobs secondary groups so that the SVN update will correctly allow access to these files.

Herein lies the problem now.

When I wish to add a file or folder to /home/site1, say Bobs_file, it then looks like this

drwxrwxr-x .
drwxrwxr-x ..
drwxr-xr-x Bob   dev   bobs_folder
drwxrwxr-x site1 site1 my_test_folder
-rw-rw-r-- Bob   dev   bobs_file
-rw-rw-r-- site1 site1 my_test_file

How can I get it so that with the set of user permissions Bob has available, to change the owner and group owner of that file to reflect “site1” “site1”. As Bob belongs to Dev I can set the permissions correctly with CHMOd, but It appears CHGRP is throwing back operation errors.

Now this was long winded enough to give an overview of exactly what I’m trying to accomplish, just incase I’m going about this arse-over-tit and there’s a far easier solution. Here’s my goals

  • 2 people to update
  • multiple user accounts specified given the structure of WHM
  • Trying to maintain master user/group permissions of file and folders to the original user account, and not the account of the updatee.
  • I like the security of SVN+SSH over just SVN.
  • Don’t want to run all this over root.

I hope this made sense, and thanks in advance 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T00:23:24+00:00Added an answer on May 14, 2026 at 12:23 am

    Try:

    $ chown -R site1:site1 /home/site1
    

    This will recursively change all files in that directory to be owned by the “site1” user in the “site1” group.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

this is what i have right now Drawing an RSS feed into the php,
link Im having trouble converting the html entites into html characters, (&# 8217;) i
Does anyone know how can I replace this 2 symbol below from the string
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I have just tried to save a simple *.rtf file with some websites and
I have a jquery bug and I've been looking for hours now, I can't
Seemingly simple, but I cannot find anything relevant on the web. What is the
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want to count how many characters a certain string has in PHP, but
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.