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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T07:51:59+00:00 2026-05-29T07:51:59+00:00

I have a Git project that it’s a bit special because the files in

  • 0

I have a Git project that it’s a bit special because the files in the tree are generated by two different users. Example:

# ls -la

drwxr-xr-x 13 ivan ivan  4096 2012-02-02 16:52 .
drwxrwxrwx 32 root root  4096 2012-01-28 21:37 ..
drwxr-xr-x  2 ivan ivan  4096 2012-02-07 20:41 system
drwxr-xr-x  2 ivan ivan  4096 2012-02-07 20:41 compatibility
drwxr-xr-x 33 ivan ivan  4096 2011-12-08 18:13 resources
drwxr-xr-x  8 ivan ivan  4096 2012-02-07 20:41 .git
-rw-r--r--  1 ivan ivan   307 2012-02-02 16:52 .gitignore
-rw-r--r--  1 bulk bulk   700 2011-11-01 20:10 base.log
.....

Git is controled just by one user (ivan) but a daemon produces files assigned to bulk user. Everything was well whilst the daemon added new files, but when the daemon changed a file, git stopped working saying:

error: unable to unlink old 'base.log' (Permission denied)

I know the best option is to make the daemon run as ivan user, but that’s technically difficult. The question is: is there any way to deal with this kind of situations in Git? I mean, I just want to do “git checkout branch” without having problems with user permissions.

  • 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-29T07:52:00+00:00Added an answer on May 29, 2026 at 7:52 am

    Add you git user (ivan) to the ‘bulk’ group.

    Debian:

    sudo adduser ivan bulk   # and relogin
    

    Others (FC, Redhat and similar?):

    usermod -a -G bulk ivan
    

    Everything should be fine. To have write access (i.e. so you can checkout, merge etc. you working tree), change permissions to allow the goup write access:

    sudo chmod g+rw bulk.log
    

    Alternatives:

    • store archives (using cpio or tar, which are both capable of preserving permissions)
    • possible combine with bup
    • store permissions as text or scripts, see also How to preserve the file permission in git?
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got two git project repos that have two or three files in common.
I have a web project that contains components in different languages: two components in
I have a project A that is a Git repository. I would like to
I have been using git to keep two copies of my project in sync,
I am using git for windows to manage a local project. I have two
I have forked an SVN project using Git because I needed to add features
I have an Xcode project that uses git for version control. I have a
I am currently using git for a project that has two participants (me and
I have a visual studio 2008 database project that is under version control (git).
I have a simple project that has one submodule. $ git submodule 964737623a362f6303e87ec41f2c7090c8c2c093 lib/mongodb-php-odm

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.