X-Recipient: archive-cygwin AT delorie DOT com X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org BE1593858C27 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=pdc.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=pdc.ca X-Zone-Loop: b0674d67bf7faafa32705c725b0e640dd14a603a58bf X-Originating-IP: [140.82.40.27] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=pdc.ca; s=x ; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Date:Message-ID: Subject:From:To:Sender:Reply-To:Cc:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=4CBSMaCY2VeeVsWsueVyNhofmkCuAhB5b0fo94z2oYs=; b=s UH+dq5hstf4yLXiEgO/JOLompu3/7OPimmHZFm6KDOLty7Mkr29XY0F2mRdniotgHwK8nskYRaeid OAwe/+eH1oAXQVUz4xkkZm+H0oHa80cZMfWRatSP2mdg3gn7lt6mSHtlDcTpn1Nk1APgHhDPFjdCF BkmmAdumlaXSYq5+5bh57ZrjJnoFKzaABYfm3vBT1ZN/uxI71k3aAqFSRSN2tgYF+Y3v9AWci3QLK UNGqpDLUdim4XCal12MjM3DsolD0nPqSumMdOsjWjxjaWVvVfl0bOsSRXQTo3I8Bs3cTl5S0p8U/s caywzdEf5WZR0tgctK4zhJhHih7mabBFg==; To: cygwin AT cygwin DOT com From: Brent Epp Subject: Permissions issues after installing Windows 10 Message-ID: <26dc3119-0f36-1331-1403-9e994a697d89@pdc.ca> Date: Sat, 7 May 2022 10:00:06 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 Content-Language: en-US X-AuthUser: brent AT pdc DOT ca X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_00, DKIM_INVALID, DKIM_SIGNED, KAM_DMARC_STATUS, KAM_NUMSUBJECT, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8"; Format="flowed" Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 247F1Dtc006783 I recently (finally) installed Windows 10 on my system (clean install).  All of my files are stored in on a secondary drive/partition, on which cygwin is also installed.  I expected to be able to just pick up where I left off, but I'm getting all sorts of permissions issues with cygwin.  I did run the cygwin setup again to reinstall/upgrade. First, I had restore my cygwin home directory from a backup, since it was giving me permissions errors on .bash_history, .ssh, etc, but the biggest headache is with git repos.  First, it gives a "fatal: unsafe repository" error.  If I add it to the safe directories list, it git still has to reindex the repo every time I run `git status`, and it still fails when I try to enter a commit. It seems most or everything is owned by "Administrators".  The only way I've been able to fix this is to go through the Windows advanced permissions dialog, change the owner to my user, and set all sub-objects to inheritable permissions, but I'm very leery about mass changes like this. Why did this happen?  And is there a better/safer/correct way to fix this? Thanks  - Brent -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple