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 69481
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T19:34:50+00:00 2026-05-10T19:34:50+00:00

My server has both Subversion and Apache installed, and the Apache web directory is

  • 0

My server has both Subversion and Apache installed, and the Apache web directory is also a Subversion working copy. The reason for this is that the simple command svn update /server/staging will deploy the latest source to the staging server.

Apache public web directory: /server/staging — (This is an SVN working copy.)

I have two users on my server, ‘richard’ and ‘austin’. They both are members of the ‘developers’ group. I recursively set permissions on the /server directory to richard:developers, using ‘sudo chown -R richard:developers /server’.

I then set the permissions to read, write and execute for both ‘richard’ and the ‘developers’ group.

So surely, ‘austin’ should now be able to use the svn update /server/staging command? However, when he tries, he gets the error:

svn: Can't open file '/server/staging/.svn/lock': Permission denied 

If I recursively change the owner of /server to austin:developers, he can run the command just fine, but then ‘richard’ can’t.

How do I fix the problem? I want to create a post-commit hook with to automatically deploy the staging site when files are committed, but I can’t see a way for that to work for both users. The hook would be:

/usr/bin/svn update /server/staging 

Using the same user account for both of them wouldn’t really be an acceptable solution, and I’m not aware of any way to run the command inside the hook as ‘root’.

Any help is appreciated!

  • 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. 2026-05-10T19:34:51+00:00Added an answer on May 10, 2026 at 7:34 pm

    Directory Set Group ID

    If the setgid bit on a directory entry is set, files in that directory will have the group ownership as the directory, instead of than the group of the user that created the file.

    This attribute is helpful when several users need access to certain files. If the users work in a directory with the setgid attribute set then any files created in the directory by any of the users will have the permission of the group. For example, the administrator can create a group called spcprj and add the users Kathy and Mark to the group spcprj. The directory spcprjdir can be created with the set GID bit set and Kathy and Mark although in different primary groups can work in the directory and have full access to all files in that directory, but still not be able to access files in each other’s primary group.

    The following command will set the GID bit on a directory:

    chmod g+s spcprjdir 

    The directory listing of the directory ‘spcprjdir’:

    drwxrwsr-x 2 kathy spcprj 1674 Sep 17 1999 spcprjdir 

    The ‘s” in place of the execute bit in the group permissions causes all files written to the directory ‘spcprjdir’ to belong to the group ‘spcprj’ .

    edit: source = Linux Files and File Permissions

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

Sidebar

Ask A Question

Stats

  • Questions 115k
  • Answers 115k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer If ExecuteReader, in your example, throws an exception it never… May 11, 2026 at 10:26 pm
  • Editorial Team
    Editorial Team added an answer From http://msdn.microsoft.com/en-us/library/ms997620.aspx Try adding the following to your manifest :-… May 11, 2026 at 10:26 pm
  • Editorial Team
    Editorial Team added an answer You can use the following; $(function() { $("#draggable").draggable(); }); .container… May 11, 2026 at 10:26 pm

Related Questions

When using Subversion (svn) for source control with multiple projects I've noticed that the
This might be a stupid question, but if I'm a lone developer and only
I am trying to understand if I really have any case for using git/mercurial.
I am trying to run client server UDP program . My both machines are

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.