New installation of Cygwin64: xinit.sh exit code 3
Jon Turney
jon.turney@dronecode.org.uk
Sun Nov 17 14:50:13 GMT 2024
On 15/11/2024 21:53, Kenneth Freidank via Cygwin wrote:
> I too, have this issue, but have not resolved it. I
> installed "amd-software-adrenalin-edition-24.10.1-minimalsetup-241031_web.exe".
> It seems to be a permissions problem. I am the only user and the only
Yeah, this does indeed seem to be permissions problem, but it only shows
up for (some?) users of Windows 11.
> administrator. OS is Win11 Pro, version 10.0.22631 Build 22631. The
> permissions seem to be scrambled in the script. I have run the
The /etc/postinstall/xinit.sh{,.done} doesn't script doesn't explicitly
do anything with permissions, it just relies on Cygwin's normal handling
of them (under the default bash umask).
> troubleshooting script and attached the output. Can anyone help.
>
> $ for p in "`cygpath -A -P -U`"{,/Cygwin-X}; do for c in 'lsattr -d' 'ls
> -dl' getfacl; do $c "$p"; echo; done; icacls "`cygpath -m "$p"`"; done
> r--------n-- /proc/cygdrive/c/ProgramData/Microsoft/Windows/Start
> Menu/Programs
>
> drwxr-xr-x+ 1 SYSTEM SYSTEM 0 Nov 12 21:36
> '/proc/cygdrive/c/ProgramData/Microsoft/Windows/Start Menu/Programs'
[...]
This looks normal
> d---rwxr-x+ 1 kfreidank Administrators 0 Nov 12 21:36
> '/proc/cygdrive/c/ProgramData/Microsoft/Windows/Start
> Menu/Programs/Cygwin-X'
[...]
This looks odd.
We have no permissions for a directory which we just created and we own.
Even then, we should have permission to create the shortcut there, via
our 'Administrators' group membership, but it's seems we don't.
Puzzling.
More information about the Cygwin
mailing list