This is the mail archive of the
mailing list for the Cygwin project.
Re: git clone fails with error chmod on config.lock failed: Invalid argument
- From: Tomas Jura <tomas dot jura1 at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 19 Apr 2016 13:20:48 +0200
- Subject: Re: git clone fails with error chmod on config.lock failed: Invalid argument
- Authentication-results: sourceware.org; auth=none
- References: <20160128172322 dot GC18626 at calimero dot vinschen dot de> <5715DCB9 dot 7060401 at gmail dot com> <20160419081107 dot GC26794 at calimero dot vinschen dot de>
My passwd and groups files got automatically renamed. I can't identify
the exact date. Last update of cygwin I did yesterday, but the rename
could happen a long time ago.
> ls passwd* groups*
groups: cannot find name for group ID 10749228312
10749228312 ZTB+Group(513) Administrators Users ..... ZTB+Group(1298252)...
ZTB is my AD domain. Seems that any of the groups that I have assigned
on the domain level was not resolved.
In the old groups.backup there is a record:
BTW: My machine is Windows Server 2008, yesterday I also run the Windows
update procedure before I notified the chmod error.
A months ago, I had to migrate to the new AD account. The cygwin was
installed using my old account, which is deleted now. Is it possible
that the query to AD runs under my old account?
On 04/19/2016 10:11 AM, Corinna Vinschen wrote:
On Apr 19 09:22, Tomas Jura wrote:
I got error chmod on config.lock failed: Invalid argument and I was able to
catch the strace. It is attached.
What I see from the strace, chmod fails to request group information:
299755 597014 [main] chmod 5840 internal_getlogin: group not found in group DB
So it looks like either your /etc/passwd or your /etc/group file is
broken. The new account handling is a bit more sensitive to broken
passwd and group files. For more information on the changes in account
handling see https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping
For a start, just move both files out of the way, stop your Cygwin
processes and try again.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple