DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 48E4oi803783460 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=jxMTar7x X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0F896385B510 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1726289443; bh=UE2J/eJ+G2j5C/8mcLG0bYMJTvICyG0xVjOgrJb2yko=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=jxMTar7xR83RgR523BPt5l/7x/t7JNJoGZymIJZVvTU9LnxtMURPhhwE79+zzvFeK Z/gnNalrbx8uHn1waNrlQnIIeQyk+NWwJpU9qZX5xA+RgnjF7dRg6UsCOHsB7SDTDO A1vhqkPkoo/bucBhxa8i5D1UyvIQEnfogS6ARoRs= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E30B63858C98 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E30B63858C98 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1726289390; cv=none; b=GAGALSy7a8OLAVRU93TZDt3qXR45qzPjAmLD5m2g5LBZ3eXMsvEnF+qTLmnejzzF+6C6GMljoHnHhES+28RemeVySvr54fl3NOKgNw6tJquqYuO+jRqfC6hKwtwAlI+6Yz3K58RPDO2o2EJr/8p4J8KuhBsNwWSCfltNifdcQWs= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1726289390; c=relaxed/simple; bh=cbhEExo33NB0eCE9lRX0vPyJP+nIZd5tCmTPe7IbtLA=; h=Message-ID:Date:MIME-Version:From:Subject:To; b=iyUr0utWynzsxDWQhHvi0SWTRt9NbA4pAtj7Sbn0QOqRs4bMrU6fB/AsiRDCHfcfqkj2qGFp9UN6A4Qwn9jDl0s178ZlYH8tH5n4f8iJmI+N39110Of7XNa4+zv9bO2aoYsbKoG8T1oVruXXK9RpZRjjGfBhh/0LjmE4w00pNNQ= ARC-Authentication-Results: i=1; server2.sourceware.org Message-ID: <77a51741-0e1a-420e-b22f-fa879fb81655@SystematicSW.ab.ca> Date: Fri, 13 Sep 2024 22:49:44 -0600 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: cyg-x install error Content-Language: en-CA To: cygwin AT cygwin DOT com 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> Organization: Systematic Software In-Reply-To: <8408239d-b388-2bc7-aae6-01709f34dcad@sonic.net> X-Rspamd-Queue-Id: 174A120010 X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00, BODY_8BITS, KAM_DMARC_STATUS, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Stat-Signature: w1kaupnzn1btmu877iigkhd4wznjkpw5 X-Rspamd-Server: rspamout08 X-Session-Marker: 427269616E2E496E676C69734053797374656D6174696353572E61622E6361 X-Session-ID: U2FsdGVkX18o74IO8QVtWQMTjQjUKEJ3qMM940Y9CA8= X-HE-Tag: 1726289384-518321 X-HE-Meta: U2FsdGVkX18XvJdNWfsUf1bfdAhoDcQFyp/nsiAVSxZZhK7WG2Zk8XEy8DmzAw2H6qFoar0zYlKC70x8L4LYYY8HPTJklE0wpJ0DvM1mITAWbZzvDm8NFIqcmCjdetjYU3fPsqfFgXpoaoQXt6YjEXX7uQsyTvmh3ni/9vnFqlhKsA6pNNKgNJbCX5/Tmljc/P29YP9pi1a61vvyMoprI+0XZ1ZOvbc0+mUaAmZ8A0gpchn/RWLir97PM/NlvoXns6AfnxV2vYirKCLiyitnJzVanUAiQIvcBAVQ7iwgt+OpesuGT0R0YqfRsCTWKzOqkvS0s1qrBZsHGjVG74qnuJavkT5ccKg4h/We3zsfzyYV4sD8UEdQRygRBUyOym3JVKh15JT5uKAuCt5Euv7pF21mHw1boTuJRirLDfHP3ScUGifV6tcZ4da5PtsjPVcStJV1Axyz68U= X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Brian Inglis via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Brian Inglis Content-Type: text/plain; charset="utf-8"; Format="flowed" Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 48E4oi803783460 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