On 2025-08-05 10:41, Hans-Bernhard Bröker via Cygwin wrote:
Am 05.08.2025 um 15:27 schrieb ben-xD via via Cygwin:
   As soon as I launch Cygwin, I see

   -bash: /usr/bin/hostname: Permission denied

   |find| fails:

   $ /usr/bin/find
   bash: /usr/bin/find: Permission denied

This would appear to be due to M$'s latest bout of paranoia, which in some system configurations has them silently sabotage any program that has the same name as one of Windows' own utilities. So "find" or "hostname" will be blocked while, say. "ls" or "xargs" are not.

Conflicting programs which may be impacted include:

$ for win in /proc/cygdrive/c/Windows/System32/*.exe; \
  do \
    exe=${win##*/}; exe=${exe,,}; exe=${exe%.exe};    \
    [ -x /bin/$exe ] && which -a $exe;        \
  done
/usr/bin/bash
/proc/cygdrive/c/Windows/System32/bash
/usr/bin/certutil
/proc/cygdrive/c/Windows/System32/certutil
/usr/bin/charmap
/proc/cygdrive/c/Windows/System32/charmap
/usr/bin/clinfo
/proc/cygdrive/c/Windows/System32/clinfo
/usr/bin/comp
/proc/cygdrive/c/Windows/System32/comp
/usr/bin/convert
/proc/cygdrive/c/Windows/System32/convert
/usr/bin/curl
/proc/cygdrive/c/Windows/System32/curl
/usr/bin/expand
/proc/cygdrive/c/Windows/System32/expand
/usr/bin/fc
/proc/cygdrive/c/Windows/System32/fc
/usr/bin/find
/proc/cygdrive/c/Windows/System32/find
/usr/bin/ftp
/proc/cygdrive/c/Windows/System32/ftp
/usr/bin/nslookup
/proc/cygdrive/c/Windows/System32/nslookup
/usr/bin/shutdown
/proc/cygdrive/c/Windows/System32/shutdown
/usr/bin/sort
/proc/cygdrive/c/Windows/System32/sort
/usr/bin/tar
/proc/cygdrive/c/Windows/System32/tar
/usr/bin/timeout
/proc/cygdrive/c/Windows/System32/timeout
/usr/bin/whoami
/proc/cygdrive/c/Windows/System32/whoami

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

Reply via email to