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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:47:06+00:00 2026-05-27T21:47:06+00:00

I am using Ubuntu on my workstation and whenever I try to commit/push to

  • 0

I am using Ubuntu on my workstation and whenever I try to commit/push to a Mercurial repository located on a CIFS share in my LAN, I get this error thrown: abort: Operation not permitted: /media/repos/myRepo/.hg/journal.dirstate

However, prepending any command that causes this with sudo, will let mercurial continue without throwing any errors at me.

What should I do stop having to sudo every commit?

  • 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-27T21:47:07+00:00Added an answer on May 27, 2026 at 9:47 pm

    Your user doesn’t have write permissions for /media/repos/myRepo. You can check the owner and permissions using ls -la. Depending on the result of that you should either:

    Try changing the permissions with chmod to allow access by your user or group.

    sudo chmod -R ug+w /media/repos/myRepo
    

    (ug+w means add write permissions for the group and the owner user, this will work if you’re in the same group as the owner. Otherwise, you could try just +w which will add it for all users, but this is less secure.)

    Try changing the owner with chown to your user or group.

    sudo chown -R <myuser>:<mygroup> /media/repos/myRepo
    

    (Both myuser and mygroup are optional)

    Also be sure to use chown and chmod recursively on the entire repository. If journal.dirstate is recreated every time (which I think is what happens), it inherits its permissions from the .hg directory, so any permissions you change on the file itself may get lost.

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

Sidebar

Related Questions

I am trying to get PhysX working using Ubuntu. First, I downloaded the SDK
Background: I am using Ubuntu The newer python version is not in the apt-get
I'm using Ubuntu 9.04 and I applied this tutorial But I'm still getting this
I'm using Ubuntu, Django 1.3, Python 2.7. When I try to upload certain types
I'm using Ubuntu and i have installed Griffon by taking the steps from this
I'm using Ubuntu 11.04, rvm and Heroku. When I'm doing this heroku logs --tail
I'm using Ubuntu 10, python 2.6.5 I'm following this tutorial: http://www.djangobook.com/en/2.0/chapter02 I followed all
I am using ubuntu, fluxbox, pcmanfm as filemanager, xmms2 as music player. My goal:
I am using Ubuntu 9.04 I have installed the following package versions: unixodbc and
I'm using Ubuntu 8.10 (Intrepid Ibex) and compiling C++ files with GCC, but when

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.