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

  • SEARCH
  • Home
  • 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 8409265
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T23:51:36+00:00 2026-06-09T23:51:36+00:00

I write code on my local machine. I push the code to a Mercurial

  • 0

I write code on my local machine. I push the code to a Mercurial repo in Bitbucket. Then, I log into the client’s webserver and “pull/update” from the Bitbucket repo to the server.

The problem is the that their account is on a shared server, running suphp, and the security settings only allow suphp to serve files chmod’ed 644 (-rw-r–r–). But every time I pull from the Bitbucket repo, the file permissions change to 664 (-rw-rw-r–).

This is not a problem of too strict permission, as others have had trying to sync Hg repos. Nor is it an issue of Mercurial NOT copying the file permissions. (Hg used to copy only the eXecute bit, but now copies all permissions.)

I suspect that I could change the permissions somehow on my Windows machine to be more restrictive and that may fix it, but I’m not sure how Windows permissions translate into Linux “owner/group/world” settings. (The files on my Windows machine allow “Full Control” to the my account, the “Administrators” Group, and “SYSTEM”, all permissions they inherit from the containing folder, which is within My Documents.)

Does anyone have a solution to this problem? Could I do a post-update hook on the Linux box to chmod 644 find . -type f?

  • 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-06-09T23:51:38+00:00Added an answer on June 9, 2026 at 11:51 pm

    set umask in your login profile, e.g. ~/.bash_profile

    umask 033
    

    man umask for details.

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

Sidebar

Related Questions

How do I write code to connect through Windows VPN client? I want this
I am creating a simple HTTP client/server application on my local machine but I
I'm trying to write code in my controller that when run, will create a
I m trying write code that after reset set up rrpmax as 3000. It
I am trying to write code for getting my cords on the mobile. I
I'm trying to write code that will load an image from a resource, and
When I write code in Python with exception handling I can write code like:
How could I write code to get all the action names from a controller
I occasionally write code something like this: // file1.cpp #define DO_THIS 1 #if DO_THIS
Is it worth to write code like the following to copy array elements: #include

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.