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@cygwin.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
>

-- 
scow...@sonic.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

Reply via email to