DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 57CG2f4m1637711 Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 57CG2f4m1637711 Authentication-Results: delorie.com; dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=VpotaEBB X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1701B3858425 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1755014560; bh=vYUh74fvSDbfOeck38R+N/WmnN/q7TV9dPKR8hRc1yk=; h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=VpotaEBBXgbDiazvFzB7BwqqYRu1oDhsWYOKnnMz+5y6S1tJ8lovX38Ah5ReIiQRJ 4FGvLt3doDd6TjqEeotwkdkDDwnT9m7MUZnicXTesYR9LtuvfAcISZz/q72bImLcSU dJSnOozTS8CGZAWxPVJ0755dPY4rRbyxDmV81PCQ= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org F3ABD3858D38 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org F3ABD3858D38 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1755014535; cv=fail; b=uj0RcS9JPNZIuBrfzRn9qpTn0Arq1y2JhDYzhPf90DVM7j3VSraFJ35ZdyPfmax+LkhO8DQMPPqg3UfqO0zihcgNlGeLiPVBtYGXGcqnaynwOfKilYJT10gzLwaJ6EfuFRF2/eTmRCK725NooTYVCLrsfLuOTLF6SpplSDtvYrA= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1755014535; c=relaxed/simple; bh=8j1PqyRVRPcn7eC1HI/L17dynLugWn1H26bWaVk8Wgc=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=kHL+CYoKzLZXh1DXrypgGCRLDKQT4USzo03MR0kV8+ElGIBmqjw45XeTyMl1YQtN7LqvwYCOFK7MBm1KuZA5dXj8+YNYHiMl+FCpS84BHCTsJ+tqFKExOZ5OcAgTn+6FAeI2Pv5wGY15Y5Fw4r2SuqihWmGzqDpGA3w5DTROoWQ= ARC-Authentication-Results: i=2; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F3ABD3858D38 X-Sender-Id: dreamhost|x-authsender|gisburn AT nrubsig DOT org ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1755014533; a=rsa-sha256; cv=none; b=QLGOgnM4ALX00BBmQWikkU9erndnMujoyDWR8smvYQLu0GaJoFG5WnodHXo4Ury03QsFIC CYLwc2VWSD1hRdajkd3o03anq/bcdNTNcmNWdN8bBUSBbPteU/8NnqeKLZ+qc9XSBcwtE5 UtBiE213JIxp7Z2GdNIJRRDT9VEYeSl2B26axj7hiw9wuUjADgWpf3+MvaEpc/14rT63io YLUht21s1XWJdOh2jekGLKrtQy0/3hw7vgewWH5RCz2qmNUePzXSpnz1/OMg81nPFhzkwl RzieYIiuxhjJ8AewOZ5rWLGhOjh18pQZrqazvEnRXyb3dHHGnV4Hab4d75IMsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1755014533; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=1pd9p13FlYB23fWv5UN0Qmtvy4XcWncoOaEmWm38qdQ=; b=zaIAfXKxjgu7EAjRH9IC7vkz28SRG3aBGAKXbbiJDAOuLVjyNB9f3ckvLuNkIRCLDAXakq dTt7yVv8/QxEqqe2ses5PYNjgmznu4u4usgw+4hL3jz8Zr8BcOA0p4p9wDOSoeBFduFtB5 Z7gcb1Fm/T3zOSXiiuTR1hX+A8moLC26tAyW2By5UlMRC85FrsYaxEAMwNRmQC592cL7VK K8w61HSK5JKbFtva9RC9TA4wpxh3Av6ZqddC07ycWTpZBE1zRLa36jqBwwVEs5084+BgXr sEKj51YWUO8OsmdGlCfzk6uMjoazAFO17VZMuMgjrTQr9q2eKtanv1/6Mdve9Q== ARC-Authentication-Results: i=1; rspamd-7c5968dc44-wt7zp; auth=pass smtp.auth=dreamhost smtp.mailfrom=roland DOT mainz AT nrubsig DOT org X-Sender-Id: dreamhost|x-authsender|gisburn AT nrubsig DOT org X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|gisburn AT nrubsig DOT org X-MailChannels-Auth-Id: dreamhost X-Suffer-Desert: 1e1b13aa24d6dba5_1755014533355_1042499808 X-MC-Loop-Signature: 1755014533355:4114908833 X-MC-Ingress-Time: 1755014533355 X-Gm-Message-State: AOJu0YxdDnv0qe3qoOJEGcMWAQeIC3x59Ya2bcxnhRWIa10WvHHGzBWt u0T6c/CVZiC7V8/a3dpZ1C/zy3Q9l/YDqLvBwi6EKcslKIynJdtFqBOZjwHfsPq5DckryLEuOZb Pw7xdtAGG4FZVzIjLlTAkkY7shLYLuh8= X-Google-Smtp-Source: AGHT+IF01M0GBiH/vGW1118KhujOWojVN1iKnn8mbCXaf7Z4syBb8lQjpnnE0hb2b1/Hmke/Yn+2H4kYqTiDK31yd4g= X-Received: by 2002:a05:6000:178f:b0:3b8:dabe:bd8b with SMTP id ffacd0b85a97d-3b900b735a9mr12159356f8f.27.1755014531381; Tue, 12 Aug 2025 09:02:11 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 12 Aug 2025 18:01:34 +0200 X-Gmail-Original-Message-ID: X-Gm-Features: Ac12FXzmv-QOWTNPDHwRYX7vRA3kwcUCxe_rC0l_-y4NRwvZ5w2vTs5Mfr_zjO0 Message-ID: Subject: Re: permission problems with Azure To: cygwin AT cygwin DOT com X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: Roland Mainz via Cygwin Reply-To: Roland Mainz Content-Type: text/plain; charset="utf-8" Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 57CG2f4m1637711 On Tue, Aug 5, 2025 at 3:27 PM ben-xD via via Cygwin wrote: > > [sending on behalf of *ben-xD* , redirected from > https://github.com/mintty/mintty/issues/563#issuecomment-3155007226] > > Dear Cygwin mailing list, > > I'd previously been happily using Cygwin on a non Azure AD enrolled > machine, but am now setting up a machine that is enrolled. > > The problem is some packages fail to install due to permissions > issues when I first launch the Cygwin |setup-x86_64.exe|. |126| is a > permissions error code: > > Screenshot: > https://github.com/user-attachments/assets/bf156f43-69d9-4ef7-aa01-0f0c8a80c44a > > As soon as I launch Cygwin, I see > > -bash: /usr/bin/hostname: Permission denied > > |bash -l| also fails: > > $ bash -l > bash: /usr/bin/hostname: Permission denied > > |find| fails: > > $ /usr/bin/find > bash: /usr/bin/find: Permission denied That sounds like a Microsoft Defender problem, which - depending on settings - blocks *.exe which have system tools with the same name in $PATH. Example: ---- snip ---- $ which -a hostname /usr/bin/hostname /cygdrive/c/Windows/system32/hostname ---- snip ---- Defender thinks that /usr/bin/hostname tries to impersonate /cygdrive/c/Windows/system32/hostname, and therefore blocks it's execution. Could you please try whether this fixes the problem for you (see https://learn.microsoft.com/en-us/defender-endpoint/attack-surface-reduction-rules-reference section "Block use of copied or impersonated system tools"): $ powershell -Command 'Set-MpPreference -AttackSurfaceReductionRules_Ids C0033C00-D16D-4114-A5A0-DC9B3A7D2CEB -AttackSurfaceReductionRules_Actions Disabled # ... and please respond back to the list whether it worked, because this more or less has become a candidate for the Cygwin FAQ... ;-( ---- Bye, Roland -- __ . . __ (o.\ \/ /.o) roland DOT mainz AT nrubsig DOT org \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer /O /==\ O\ TEL +49 641 3992797 (;O/ \/ \O;) -- 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