delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/09/14/01:44:01

DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 48E5i1kR3806911
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=aAhKCyNs
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B4B9C385842C
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1726292639;
bh=oKNRNhFMIN6U1Rt/YehIMPHpsWXta1vVsv2oc13tV1I=;
h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=aAhKCyNsLEBqHQKLAIqkxpZfgrQC0Bvui2WXfmR6ArBgJXDxiFCgLtBz7kmkGdoLt
BPf+K00vv4PkpF2J3DTKk8r3g+F6Tgef1BXywJ2hdxbIEX4lToaM5KagkOeBrD6vM6
ZD617kjRqrGK4E2yNHtlz8sMxqL7H9/DWE3D7LZ4=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 63F393858C35
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 63F393858C35
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1726292587; cv=none;
b=AVL3Ahw0A/54ZQdcwrmEeJDPUS/uvhdOY4g4mmImAV15R/yEZoTsxdr3OP9D+djXnTOgKxrul+i5/IchZWJ8Jpj5vw52e/hJ9PMCFsbqksViOe9sSI5WodROpCrryxkLGUVk4kQdgjG8HNqLjGq7wb60xaZibCdQzibGs2ihbno=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1726292587; c=relaxed/simple;
bh=1m7ArN3hnxSZuEt2Hal/9dv1KRYiQ5Kvw6QDetG1eSE=;
h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version;
b=jMAiCDi0vJwO1reK5u237EsJEkj9Vc6MkPl+HLHJdQuef3TZl4IJbXq9fokif/I4AAfnVpkJws3XSeYbGMn1ZyQLOXb8Bi4dK6PnbYdfxHdKplkZIkoF4XOk0SrwsFYLvtlmT0iLCOusIXZD52HsQRWho717d9XmEF5Rr9iqPEc=
ARC-Authentication-Results: i=1; server2.sourceware.org
Date: Fri, 13 Sep 2024 22:43:02 -0700
To: cygwin AT cygwin DOT com
Subject: Re: cyg-x install error
User-Agent: K-9 Mail for Android
In-Reply-To: <77a51741-0e1a-420e-b22f-fa879fb81655@SystematicSW.ab.ca>
References: <86b774d1-84cb-4334-75d0-aa957ff18452 AT sonic DOT net>
<9233840e-d8f5-4c52-b2aa-e41f2997552d AT SystematicSW DOT ab DOT ca>
<8408239d-b388-2bc7-aae6-01709f34dcad AT sonic DOT net>
<77a51741-0e1a-420e-b22f-fa879fb81655 AT SystematicSW DOT ab DOT ca>
Message-ID: <F2EBC7AA-E7E9-4A50-8EF3-53E6BA24BB9D@sonic.net>
MIME-Version: 1.0
X-Sonic-CAuth: UmFuZG9tSVb1fGaOp2MXHDUaScngZhJNYb+I5+9eRCFbU2I5KmJniaeDAZ4mUqKV1z5ggVUp9wf9BldO+tMqrDrh1C0JIHsVhGzL8wOwpyo=
X-Sonic-ID: C;AMe3NFxy7xGkp8oy4hLSpA== M;WnDNNFxy7xGkp8oy4hLSpA==
X-Sonic-Spam-Details: 0.1/5.0 by cerberusd
X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00, BODY_8BITS,
DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, HTML_MESSAGE,
RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_PASS,
TXREP autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-Content-Filtered-By: Mailman/MimeDel 2.1.30
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: scowles via Cygwin <cygwin AT cygwin DOT com>
Reply-To: sidcowles AT sonic DOT net
Cc: scowles <scowles AT sonic DOT net>
Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 48E5i1kR3806911

thank you very much for what to look for.  i will report status after checking.



On September 13, 2024 9:49:44 PM PDT, Brian Inglis via Cygwin <cygwin AT cygwin DOT com> wrote:
>On 2024-09-13 18:06, S. Cowles via Cygwin wrote:
>> 
>> On Fri, 13 Sep 2024, Brian Inglis via Cygwin wrote:
>>> On 2024-09-13 14:02, S. Cowles via Cygwin wrote:
>>>> 
>>>> i have a clean install of cygwin on a win11pro box.  when i install cyg-x (via https://x.cygwin.com/docs/ug/setup.html#setup-cygwin-x-installing), i get the following error:
>>>> 
>>>> Package:  _/xinit
>>>>      xinit.sh exit code 3
>>> 
>>> Where are you seeing this error?
>> 
>> final error reporting window of setup-x86_64.ext instance
>> 
>> 
>>>> the result of the error is no access to any cyg-x apps via start menu, etc. what is the proper way to fix this error?
>>> 
>>> What does it show in /var/log/setup.log.full?
>> 
>> 
>> attached.
>> 
>> relevant lines appear to be:
>> mkshortcut: Saving "/cygdrive/c/ProgramData/Microsoft/Windows/Start Menu/Programs/Cygwin-X/XWin Server.lnk" failed; does the target directory exist?
>> mkshortcut: Saving "/cygdrive/c/ProgramData/Microsoft/Windows/Start Menu/Programs/Cygwin-X/User script.lnk" failed; does the target directory exist?
>> dir permissions are reported as:
>> d---rwxr-x+ 1 userxyz       Administrators 0 May 20 10:06  Cygwin-X/
>> suggestions?
>
>Problem is that directory is not created with a User DACL, so its parent probably also lacks a User DACL.
>
>First check the X11 directories are okay:
>
>$ ls -gloR /etc/X11
>/etc/X11:
>total 23
>drwxr-xr-x 1    0 Jun 15 18:15 app-defaults
>drwxr-xr-x 1    0 Aug  2 20:25 fontpath.d
>-rw-r--r-- 1 3887 Jun 15 18:20 system.XWinrc
>drwxr-xr-x 1    0 Dec 26  2022 xinit
>-rwxr--r-- 1  884 Feb 13  2015 Xloadimage
>-rw-r--r-- 1  547 Dec 26  2022 Xmodmap
>-rw-r--r-- 1  493 Dec 26  2022 Xresources
>drwxrwxr-x 1    0 Jun 15 18:15 xsm
>
>/etc/X11/app-defaults:
>total 138
>-rw-r--r-- 1  9870 Apr 27 11:51 Editres
>-rw-r--r-- 1  2751 Apr 27 11:51 Editres-color
>-rw-r--r-- 1  2872 Jul 16  2023 GXditview
>-rw-r--r-- 1   601 Jul 16  2023 GXditview-color
>-rw-r--r-- 1  3184 Dec 18  2022 Viewres
>-rw-r--r-- 1   973 Dec 18  2022 Viewres-color
>-rw-r--r-- 1 22916 May 20  2023 XCalc
>-rw-r--r-- 1 11573 May 20  2023 XCalc-color
>-rw-r--r-- 1  4086 Aug 12  2022 XClipboard
>-rw-r--r-- 1   754 Dec 18  2022 Xfd
>-rw-r--r-- 1  4928 Apr 27 12:17 XFontSel
>-rw-r--r-- 1   106 Apr 27 12:12 XLoad
>-rw-r--r-- 1  6148 Apr 27 12:13 Xman
>-rw-r--r-- 1  3871 Apr 27 12:47 XSm
>-rw-r--r-- 1 11515 Jan 25  2024 XTerm
>-rw-r--r-- 1  5826 Jan 25  2024 XTerm-color
>
>/etc/X11/fontpath.d:
>total 7
>lrwxrwxrwx 1 30 Apr 17  2018  urw-fonts -> /usr/share/X11/fonts/urw-fonts
>lrwxrwxrwx 1 27 Jun 15 18:13 'xorg-x11-fonts-100dpi:unscaled:pri=30' -> /usr/share/X11/fonts/100dpi
>lrwxrwxrwx 1 26 Jun 15 18:13 'xorg-x11-fonts-75dpi:unscaled:pri=20' -> /usr/share/X11/fonts/75dpi
>lrwxrwxrwx 1 25 Jun 15 18:13 'xorg-x11-fonts-misc:unscaled:pri=10' -> /usr/share/X11/fonts/misc
>lrwxrwxrwx 1 26 Jun 15 18:13  xorg-x11-fonts-Type1 -> /usr/share/X11/fonts/Type1
>
>/etc/X11/xinit:
>total 28
>-rwxr-xr-x 1 3770 Dec 26  2022 startxwinrc
>-rwxr-xr-x 1 2692 Dec 26  2022 Xclients
>drwxr-xr-x 1    0 Apr 24  2023 Xclients.d
>-rwxr-xr-x 1 1486 Dec 26  2022 xinitrc
>drwxr-xr-x 1    0 Mar 10  2024 xinitrc.d
>-rw-r--r-- 1 1870 Dec 26  2022 xinitrc-common
>-rwxr-xr-x 1 4740 Dec 26  2022 Xsession
>
>/etc/X11/xinit/Xclients.d:
>total 4
>-rwxrwxr-x 1 110 Apr  1  2023 Xclients.openbox.sh
>-rwxrwxr-x 1 177 Apr  1  2023 Xclients.openbox-gnome.sh
>-rwxrwxr-x 1 122 Apr  1  2023 Xclients.openbox-kde.sh
>-rwxr-xr-x 1 121 Dec 18  2022 Xclients.xinit-compat.sh
>
>/etc/X11/xinit/xinitrc.d:
>total 3
>-rwxr-xr-x 1 558 Feb 24  2024 00-start-message-bus.sh
>-rwxr-xr-x 1 543 Dec 26  2022 localuser.sh
>-rwxr-xr-x 1 537 Sep  4  2017 xdg-user-dirs.sh
>
>/etc/X11/xsm:
>total 1
>-rw-r--r-- 1 77 Apr 27 12:47 system.xsm
>
>Next go to the Cygwin-X directory and check up the parents in the path until you can see drwxr[-w]xr[-w]x, and check that directory has User DACLs e.g. [sanitized]:
>
>$ lsattr -d /proc/cygdrive/c/ProgramData/Microsoft/Windows/Start Menu/
>/proc/cygdrive/c/ProgramData/Microsoft/Windows/Start Menu/ Readonly, Notindexed
>$ls -dl /proc/cygdrive/c/ProgramData/Microsoft/Windows/Start Menu/
>drwxr-xr-x+ 1 SYSTEM SYSTEM 0 Dec  7  2019 /proc/cygdrive/c/ProgramData/Microsoft/Windows/Start Menu/
>
>$ getfacl /proc/cygdrive/c/ProgramData/Microsoft/Windows/Start Menu/
># file: /proc/cygdrive/c/ProgramData/Microsoft/Windows/Start Menu/
># owner: SYSTEM
># group: SYSTEM
>user::rwx
>group::r-x
>group:Administrators:rwx        #effective:r-x
>group:Users:r-x
>mask::r-x
>other::r-x
>default:user::rwx		<<<
>default:user:$USER:---		<<<
>default:user:$Admin:---		<<<
>default:group::---
>default:group:Administrators:rwx        #effective:r-x
>default:group:Users:r-x
>default:mask::r-x
>default:other::r-x
>
>$ icacls C:/ProgramData/Microsoft/Windows/Start?Menu
>C:/ProgramData/Microsoft/Windows/Start Menu $HOSTNAME/$USER:(OI)(CI)(IO)(DE,DC)
>                                            $HOSTNAME/$Admin:(OI)(CI)(IO)(DE,DC)
>                                            NT AUTHORITY/SYSTEM:(I)(OI)(CI)(F)
>                                            BUILTIN/Administrators:(I)(OI)(CI)(F)
>                                            BUILTIN/Users:(I)(OI)(CI)(RX)
>                                            Everyone:(I)(OI)(CI)(RX)
>Successfully processed 1 files; Failed processing 0 files
>
>then work your way back down checking:
>
>$ lsattr -d /proc/cygdrive/c/ProgramData/Microsoft/Windows/Start\ Menu/Programs/
>/proc/cygdrive/c/ProgramData/Microsoft/Windows/Start Menu/Programs/ Readonly, Notindexed
>$ ls -dl /proc/cygdrive/c/ProgramData/Microsoft/Windows/Start\ Menu/Programs/
>drwxr-xr-x+ 1 SYSTEM SYSTEM 0 Aug 22 17:30 /proc/cygdrive/c/ProgramData/Microsoft/Windows/Start Menu/Programs/
>$ getfacl /proc/cygdrive/c/ProgramData/Microsoft/Windows/Start\ Menu/Programs/
># file: /proc/cygdrive/c/ProgramData/Microsoft/Windows/Start Menu/Programs/
># owner: SYSTEM
># group: SYSTEM
>user::rwx
>user:$USER:r-x
>user:$Admin:rwx #effective:r-x
>group::r-x
>group:Administrators:rwx        #effective:r-x
>group:Users:r-x
>mask::r-x
>other::r-x
>default:user::rwx		<<<
>default:user:$USER:---		<<<
>default:user:$Admin:---		<<<
>default:group::---
>default:group:Administrators:rwx        #effective:r-x
>default:group:Users:r-x
>default:mask::r-x
>default:other::r-x
>$ icacls C:/ProgramData/Microsoft/Windows/Start?Menu/Programs
>C:/ProgramData/Microsoft/Windows/Start Menu/Programs $HOSTNAME/$USER:(I)(OI)(CI)(DE,DC)
>
>$HOSTNAME/$Admin:(I)(OI)(CI)(DE,DC)
>                                                     NT AUTHORITY/SYSTEM:(I)(OI)(CI)(F)
>
>BUILTIN/Administrators:(I)(OI)(CI)(F)
>                                                     BUILTIN/Users:(I)(OI)(CI)(RX)
>                                                     Everyone:(I)(OI)(CI)(RX)
>Successfully processed 1 files; Failed processing 0 files
>
>so try fixing that with:
>
>$ setfacl -md:u:$USER:rwx /proc/cygdrive/c/ProgramData/Microsoft/Windows/Start\ Menu/Programs
>$ chmod a+rx /proc/cygdrive/c/ProgramData/Microsoft/Windows/Start\ Menu/Programs
>
>then list Cygwin-X:
>
>$ lsattr -d /proc/cygdrive/c/ProgramData/Microsoft/Windows/Start\ Menu/Programs/Cygwin-X/
>/proc/cygdrive/c/ProgramData/Microsoft/Windows/Start Menu/Programs/Cygwin-X/ ---
>$ ls -dl /proc/cygdrive/c/ProgramData/Microsoft/Windows/Start\ Menu/Programs/Cygwin-X/
>drwxr-xr-x 1 $USER None 0 Dec 26  2022 /proc/cygdrive/c/ProgramData/Microsoft/Windows/Start Menu/Programs/Cygwin-X/
>$ getfacl /proc/cygdrive/c/ProgramData/Microsoft/Windows/Start\ Menu/Programs/Cygwin-X/
># file: /proc/cygdrive/c/ProgramData/Microsoft/Windows/Start Menu/Programs/Cygwin-X/
># owner: $USER
># group: None
>user::rwx
>group::r-x
>other::r-x
>default:user::---	!!!
>default:group::r-x
>default:other::r-x
>$ icacls C:/ProgramData/Microsoft/Windows/Start?Menu/Programs/Cygwin-X
>C:/ProgramData/Microsoft/Windows/Start Menu/Programs/Cygwin-X $HOSTNAME/$USER:(F)
>                                                              $HOSTNAME/None:(RX)
>                                                              Everyone:(RX)
>                                                              NULL SID:(OI)(CI)(IO)(DENY)(Rc,S)
>                                                              CREATOR OWNER:(OI)(CI)(IO)(DENY)(S,RD,REA,X)
>                                                              CREATOR OWNER:(OI)(CI)(IO)(D,Rc,WDAC,WO,RA,WA)
>                                                              CREATOR GROUP:(OI)(CI)(IO)(RX)
>
>Everyone:(OI)(CI)(IO)(RX)
>Successfully processed 1 files; Failed processing 0 files
>
>and try fixing that with:
>
>$ setfacl -b /proc/cygdrive/c/ProgramData/Microsoft/Windows/Start\ Menu/Programs/Cygwin-X/
>$ setfacl -md:u::rwx /proc/cygdrive/c/ProgramData/Microsoft/Windows/Start\ Menu/Programs/Cygwin-X/
>$ chmod a+rx /proc/cygdrive/c/ProgramData/Microsoft/Windows/Start\ Menu/Programs/Cygwin-X/
>
>then list:
>
>$ lsattr -d /proc/cygdrive/c/ProgramData/Microsoft/Windows/Start\ Menu/Programs/Cygwin-X/
>/proc/cygdrive/c/ProgramData/Microsoft/Windows/Start Menu/Programs/Cygwin-X/ ---
>$ ls -dl /proc/cygdrive/c/ProgramData/Microsoft/Windows/Start\ Menu/Programs/Cygwin-X/
>drwxr-xr-x 1 $USER None 0 Dec 26  2022 /proc/cygdrive/c/ProgramData/Microsoft/Windows/Start Menu/Programs/Cygwin-X/
>$ getfacl /proc/cygdrive/c/ProgramData/Microsoft/Windows/Start\ Menu/Programs/Cygwin-X/
># file: /proc/cygdrive/c/ProgramData/Microsoft/Windows/Start Menu/Programs/Cygwin-X/
># owner: $USER
># group: None
>user::rwx
>group::r-x
>other::r-x
>default:user::rwx
>default:group::r-x
>default:other::r-x
>$ icacls C:/ProgramData/Microsoft/Windows/Start?Menu/Programs/Cygwin-X
>C:/ProgramData/Microsoft/Windows/Start Menu/Programs/Cygwin-X $HOSTNAME/$USER:(F)
>                                                              $HOSTNAME/None:(RX)
>                                                              Everyone:(RX)
>                                                              CREATOR OWNER:(OI)(CI)(IO)(F)
>                                                              CREATOR GROUP:(OI)(CI)(IO)(RX)
>
>Everyone:(OI)(CI)(IO)(RX)
>Successfully processed 1 files; Failed processing 0 files
>
>Now hopefully when you rerun setup, it will succeed with the shortcuts.
>
>-- 
>Take care. Thanks, Brian Inglis              Calgary, Alberta, Canada
>
>La perfection est atteinte                   Perfection is achieved
>non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
>mais lorsqu'il n'y a plus rien à retirer     but when there is no more to cut
>                                -- Antoine de Saint-Exupéry
>
>-- 
>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
>

-- 
scowles AT sonic DOT net
+1 510 380 8661

-- 
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019