LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 05-12-2008, 04:27 PM   #1
frndrfoe
Member
 
Registered: Jan 2008
Distribution: RHEL, CentOS
Posts: 373

Rep: Reputation: 38
Git permissions in object directory


I am new to git so that may explain my problem.

I am a mere sysadmin and not a developer so I am not a git user. I am trying to resolve a problem where one of my users commits to a git repo via "git push" and the effected ./object/* subdirectories are reset with drwxr-xr-x permissions and their files are set with -r--r--r--.
I changed the .git/config file to:
Code:
[core]
        repositoryformatversion = 0
        filemode = true
        bare = false
        logallrefupdates = true
        sharedrepository = 1
[receive]
        denyNonFastforwards = true
and now I get the ./object/* directories set to drwxrwsr-x and the files within still set to -r--r--r--.

I would like the ./object/* directories to be set to drwxrws--- and their files to be -rw-rw----

Code:
]# ls -la     
total 160
drwxrws--x    3 user     group     4096 May  5 14:15 .
drwxrws--x    9 user     group     4096 May 12 13:35 ..
drwxrws--x    7 user     group     4096 May 10 10:56 .git

# ls -la .git
total 44
drwxrws--x    7 user     group     4096 May 10 10:56 .
drwxrws--x    3 user     group     4096 May  5 14:15 ..
-rw-rw----    1 user     group       23 Feb 21 09:11 HEAD
-rw-rw----    1 user     group      152 May 10 10:56 config
-rw-rw----    1 user     group       58 Feb 21 09:11 description
drwxrws--x    2 user     group     4096 Feb 21 09:11 hooks
-rw-rw----    1 user     group      241 Feb 21 09:13 index
drwxrws--x    2 user     group     4096 May  7 09:24 info
drwxrws--x    3 user     group     4096 Feb 21 09:13 logs
drwxrws--x  175 user     group     4096 May 12 16:10 objects
drwxrws--x    4 user     group     4096 Feb 21 09:11 refs

Help/insight appreciated...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Git Error with chdir permissions DiBosco Linux - Software 2 05-01-2008 01:36 PM
Cannot open shared object file : Issue with permissions? sirish Linux - General 2 03-23-2007 06:41 AM
Cannot open shared object file : Issue with permissions? sirish Linux - Newbie 0 03-22-2007 06:48 AM


All times are GMT -5. The time now is 11:45 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration