git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Git config command ignores explicitly set file permissions
@ 2020-06-18 13:13 Riddell, Matthew A
  2020-06-18 18:32 ` Junio C Hamano
  0 siblings, 1 reply; 5+ messages in thread
From: Riddell, Matthew A @ 2020-06-18 13:13 UTC (permalink / raw)
  To: git@vger.kernel.org

Hello,

I noticed while working with Git that the file permissions on the gitconfig file is ignored and the parent folder permissions are used instead to update the file. 
An example is as follows:

Before running git config ensure the user running the command is not able to edit the file but has read access to the file. Ensure the User has full access to the parent folder. 
After running any git config command the user previously without edit permissions on a file can now edit the config file.

I documented the issue in more details in this ticket https://github.com/git-for-windows/git/issues/2686

I originally found the issue  while working in the windows version of git but @dscho noted that it is also an issue in the WSL version of git and believes it is caused by creating the .lock file which replaces the original file.
@dscho also suggested I send out an email to this mailing list.

Let me know if I can provide any more information

Thanks,

Matthew Riddell

----------------------------------------------------------------------
The information contained in this message may be privileged, confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify your representative immediately and delete this message from your computer. Thank you.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-06-18 21:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-18 13:13 Git config command ignores explicitly set file permissions Riddell, Matthew A
2020-06-18 18:32 ` Junio C Hamano
2020-06-18 20:30   ` Randall S. Becker
2020-06-18 20:57     ` Riddell, Matthew A
2020-06-18 21:37       ` Randall S. Becker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).