public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Type of symlink file and readshortcut
@ 2021-06-22 13:47 Håkon Hægland
  2021-06-23 22:24 ` Mark Geisert
  0 siblings, 1 reply; 3+ messages in thread
From: Håkon Hægland @ 2021-06-22 13:47 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 1356 bytes --]

I am on Windows 10 Home, 21H1. I am trying to understand what type of files
are generated by the "ln -s" command. According to this blog:

https://blogs.windows.com/windowsdeveloper/2016/12/02/symlinks-windows-10/

starting with Windows 10 Insiders build 14972, native symlinks can be
created without needing to elevate the console as administrator.

To enable this feature, go to "Windows Security" -> "For developers", and
turn on "Developer mode".

Further, according to:

https://cygwin.com/cygwin-ug-net/using-cygwinenv.html
https://cygwin.com/cygwin-ug-net/using.html#pathnames-symlink

Cygwin "ln -s" should create a native symlink if available, and otherwise
create a .lnk shortcut files with a special header and the DOS READONLY
attribute set. I tried this, first I switched off "Developer mode" and ran:

$ echo a > a.txt
$ CYGWIN=winsymlinks:native ln -s a.txt b.lnk  # NOTE: should not create
native symlink since developer mode is not on..
$ ls -l
total 1.0K
-rw-r--r-- 1 hakon hakon 2 Jun 22 15:12 a.txt
lrwxrwxrwx 1 hakon hakon 5 Jun 22 15:17 b.lnk -> a.txt
$ readshortcut.exe -t b.lnk
readshortcut: Load failed on C:\cygwin64\home\hakon\test\symlink2\b.lnk

Why does readshortcut.exe fail to read the b.lnk file ? Are there some
other tools that can determine the type of the b.lnk file? Is it a native
symlink or a Windows shortcut file?

[-- Attachment #2: cygcheck.out --]
[-- Type: application/octet-stream, Size: 34786 bytes --]


Cygwin Configuration Diagnostics
Current System Time: Tue Jun 22 11:14:06 2021

Windows 10 Home Ver 10.0 Build 19043 

Path:	C:\cygwin64\home\hakon\perl5\bin
	C:\cygwin64\usr\local\bin
	C:\cygwin64\bin
	C:\Program Files (x86)\ActiveState Komodo IDE 12
	C:\Program Files (x86)\ActiveState Komodo Edit 12
	C:\WINDOWS\system32
	C:\WINDOWS
	C:\WINDOWS\System32\Wbem
	C:\WINDOWS\System32\WindowsPowerShell\v1.0
	C:\WINDOWS\System32\OpenSSH
	C:\Strawberry\c\bin
	C:\Strawberry\perl\site\bin
	C:\Strawberry\perl\bin
	C:\Program Files\PuTTY
	C:\Program Files\Git\cmd
	C:\ProgramData\chocolatey\bin
	C:\Program Files\gettext-iconv\bin
	C:\Users\hakon\AppData\Local\Programs\Python\Python38
	C:\Users\hakon\AppData\Local\Programs\Python\Python38\Scripts
	C:\Users\hakon\AppData\Local\Microsoft\WindowsApps
	C:\rakudo\bin
	C:\rakudo\share\perl6\site\bin
	C:\Users\hakon\AppData\Local\atom\bin
	C:\Users\hakon\AppData\Local\Programs\MiKTeX 2.9\miktex\bin\x64
	C:\Program Files\R\R-4.0.0\bin
	C:\Program Files\Notepad++
	C:\Program Files\Java\jdk-14.0.1\bin
	C:\Users\hakon\AppData\Local\Programs\Microsoft VS Code\bin
	C:\Users\hakon\OneDrive\Batch-scripts
	C:\Users\hakon\AppData\Local\Microsoft\WindowsApps
	C:\Users\hakon\utilities\Junction
	C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2021.1.2\bin
	C:\Users\hakon\utilities
	C:\rakudo\bin
	C:\rakudo\share\perl6\site\bin
	C:\Users\hakon\AppData\Local\Programs\Microsoft VS Code

Output from C:\cygwin64\bin\id.exe
UID: 197609(hakon)
GID: 197609(hakon)
197609(hakon)
401408(Medium Mandatory Level)
545(Users)
559(Performance Log Users)
4(INTERACTIVE)
66049(CONSOLE LOGON)
11(Authenticated Users)
15(This Organization)
68446(MicrosoftAccount+hakonhagland@hotmail.com)
113(Local account)
4095(CurrentSession)
66048(LOCAL)
262180(Cloud Account Authentication)

SysDir: C:\WINDOWS\system32
WinDir: C:\WINDOWS

USER = 'hakon'
PWD = '/home/hakon/test/symlink'
HOME = '/home/hakon'
CYGWIN = 'winsymlinks:nativestrict'

USERDOMAIN = 'DESKTOP-43CR0B8'
OS = 'Windows_NT'
COMMONPROGRAMFILES = 'C:\Program Files\Common Files'
PROCESSOR_LEVEL = '6'
PSModulePath = 'C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules'
CommonProgramW6432 = 'C:\Program Files\Common Files'
CommonProgramFiles(x86) = 'C:\Program Files (x86)\Common Files'
TZ = 'Europe/Oslo'
HOSTNAME = 'DESKTOP-43CR0B8'
PUBLIC = 'C:\Users\Public'
OLDPWD = '/home/hakon/test'
PERL_MB_OPT = '--install_base "/home/hakon/perl5"'
USERNAME = 'hakon'
ChocolateyInstall = 'C:\ProgramData\chocolatey'
SDL_INST_DIR = 'C:\Users\hakon\SDL-src\SDL-1.2.15'
LOGONSERVER = '\\DESKTOP-43CR0B8'
PROCESSOR_ARCHITECTURE = 'AMD64'
LOCALAPPDATA = 'C:\Users\hakon\AppData\Local'
COMPUTERNAME = 'DESKTOP-43CR0B8'
!:: = '::\'
SYSTEMDRIVE = 'C:'
USERPROFILE = 'C:\Users\hakon'
PATHEXT = '.exe;.bat;.pl;.PL;.com'
SYSTEMROOT = 'C:\WINDOWS'
USERDOMAIN_ROAMINGPROFILE = 'DESKTOP-43CR0B8'
PROCESSOR_IDENTIFIER = 'Intel64 Family 6 Model 94 Stepping 3, GenuineIntel'
OneDriveConsumer = 'C:\Users\hakon\OneDrive'
TMP = '/tmp'
LC_CTYPE = 'en_US.UTF-8'
TERM_PROGRAM = 'mintty'
TERM_PROGRAM_VERSION = '3.4.4'
OneDrive = 'C:\Users\hakon\OneDrive'
PROCESSOR_REVISION = '5e03'
PERL_MM_OPT = 'INSTALL_BASE=/home/hakon/perl5'
PROFILEREAD = 'true'
PERL_LOCAL_LIB_ROOT = '/home/hakon/perl5'
NUMBER_OF_PROCESSORS = '1'
ProgramW6432 = 'C:\Program Files'
COMSPEC = 'C:\WINDOWS\system32\cmd.exe'
APPDATA = 'C:\Users\hakon\AppData\Roaming'
SHELL = '/bin/bash'
TERM = 'xterm'
IntelliJ IDEA Community Edition = 'C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2021.1.2\bin;'
WINDIR = 'C:\WINDOWS'
PERL5LIB = '/home/hakon/perl5/lib/perl5'
ProgramData = 'C:\ProgramData'
SHLVL = '1'
MINTTY_SHORTCUT = '/cygdrive/c/Users/hakon/AppData/Roaming/Microsoft/Internet Explorer/Quick Launch/User Pinned/TaskBar/Cygwin64 Terminal.lnk'
PYTHONPATH = 'C:\Users\hakon\AppData\Local\Programs\Python\Python38\Lib\site-packages'
PRINTER = 'Microsoft Print to PDF'
PROGRAMFILES = 'C:\Program Files'
MSYS = 'winsymlinks:nativestrict'
ALLUSERSPROFILE = 'C:\ProgramData'
TEMP = '/tmp'
GETTEXTCLDRDIR = 'C:\Program Files\gettext-iconv\lib\gettext'
DriverData = 'C:\Windows\System32\Drivers\DriverData'
SESSIONNAME = 'Console'
ProgramFiles(x86) = 'C:\Program Files (x86)'
PS1 = '\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ '
HOMEDRIVE = 'C:'
ChocolateyLastPathUpdate = '132522322448165487'
INFOPATH = '/usr/local/info:/usr/share/info:/usr/info'
HOMEPATH = '\Users\hakon'
ORIGINAL_PATH = '/cygdrive/c/Program Files (x86)/ActiveState Komodo IDE 12:/cygdrive/c/Program Files (x86)/ActiveState Komodo Edit 12:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/WINDOWS/System32/WindowsPowerShell/v1.0:/cygdrive/c/WINDOWS/System32/OpenSSH:/cygdrive/c/Strawberry/c/bin:/cygdrive/c/Strawberry/perl/site/bin:/cygdrive/c/Strawberry/perl/bin:/cygdrive/c/Program Files/PuTTY:/cygdrive/c/Program Files/Git/cmd:/cygdrive/c/ProgramData/chocolatey/bin:/cygdrive/c/Program Files/gettext-iconv/bin:/cygdrive/c/Users/hakon/AppData/Local/Programs/Python/Python38:/cygdrive/c/Users/hakon/AppData/Local/Programs/Python/Python38/Scripts:/cygdrive/c/Users/hakon/AppData/Local/Microsoft/WindowsApps:/cygdrive/c/rakudo/bin:/cygdrive/c/rakudo/share/perl6/site/bin:/cygdrive/c/Users/hakon/AppData/Local/atom/bin:/cygdrive/c/Users/hakon/AppData/Local/Programs/MiKTeX 2.9/miktex/bin/x64:/cygdrive/c/Program Files/R/R-4.0.0/bin:/cygdrive/c/Program Files/Notepad++:/cygdrive/c/Program Files/Java/jdk-14.0.1/bin:/cygdrive/c/Users/hakon/AppData/Local/Programs/Microsoft VS Code/bin:/cygdrive/c/Users/hakon/OneDrive/Batch-scripts:/cygdrive/c/Users/hakon/AppData/Local/Microsoft/WindowsApps:/cygdrive/c/Users/hakon/utilities/Junction:/cygdrive/c/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.1.2/bin:/cygdrive/c/Users/hakon/utilities'
EXECIGNORE = '*.dll'
_ = '/usr/bin/cygcheck'

HKEY_CURRENT_USER\SOFTWARE\Cygwin
HKEY_CURRENT_USER\SOFTWARE\Cygwin\Installations
  (default) = '\??\C:\PROGRA~2\ConEmu\ConEmu'
  656b60dd59f55848 = '\??\C:\Users\hakon\wsl-terminal'
  e022582115c10879 = '\??\C:\cygwin64'
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\Installations
  (default) = '\??\C:\cygwin64'
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\setup
  (default) = 'C:\cygwin64'

obcaseinsensitive set to 1

Cygwin installations found in the registry:
  System: Key: e022582115c10879 Path: C:\cygwin64
  User:   Key: 9cf324b006759cb6 Path: C:\PROGRA~2\ConEmu\ConEmu (ORPHANED)
  User:   Key: 656b60dd59f55848 Path: C:\Users\hakon\wsl-terminal
  User:   Key: e022582115c10879 Path: C:\cygwin64

c:  hd  NTFS     86457Mb  97% CP CS UN PA FC    QU  

C:\cygwin64      /          system  binary,auto
C:\cygwin64\bin  /usr/bin   system  binary,auto
C:\cygwin64\lib  /usr/lib   system  binary,auto
cygdrive prefix  /cygdrive  user    binary,posix=0,auto

Found: C:\cygwin64\bin\awk
 -> C:\cygwin64\bin\gawk.exe
Found: C:\cygwin64\bin\bash.exe
Found: C:\WINDOWS\system32\bash.exe
Warning: C:\cygwin64\bin\bash.exe hides C:\WINDOWS\system32\bash.exe
Found: C:\cygwin64\bin\cat.exe
Found: C:\WINDOWS\system32\certutil.exe
Not Found: clinfo
Found: C:\WINDOWS\system32\comp.exe
Found: C:\WINDOWS\system32\convert.exe
Found: C:\cygwin64\bin\cp.exe
Found: C:\cygwin64\bin\cpp.exe
Found: C:\Strawberry\c\bin\cpp.exe
Warning: C:\cygwin64\bin\cpp.exe hides C:\Strawberry\c\bin\cpp.exe
Not Found: crontab
Found: C:\cygwin64\bin\curl.exe
Found: C:\WINDOWS\system32\curl.exe
Warning: C:\cygwin64\bin\curl.exe hides C:\WINDOWS\system32\curl.exe
Found: C:\cygwin64\bin\expand.exe
Found: C:\WINDOWS\system32\expand.exe
Warning: C:\cygwin64\bin\expand.exe hides C:\WINDOWS\system32\expand.exe
Found: C:\cygwin64\bin\find.exe
Found: C:\WINDOWS\system32\find.exe
Warning: C:\cygwin64\bin\find.exe hides C:\WINDOWS\system32\find.exe
Found: C:\WINDOWS\system32\ftp.exe
Found: C:\cygwin64\bin\gcc.exe
Found: C:\Strawberry\c\bin\gcc.exe
Warning: C:\cygwin64\bin\gcc.exe hides C:\Strawberry\c\bin\gcc.exe
Found: C:\Strawberry\c\bin\gdb.exe
Found: C:\cygwin64\bin\grep.exe
Found: C:\cygwin64\bin\hostname.exe
Found: C:\WINDOWS\system32\hostname.exe
Warning: C:\cygwin64\bin\hostname.exe hides C:\WINDOWS\system32\hostname.exe
Found: C:\cygwin64\bin\kill.exe
Found: C:\WINDOWS\system32\klist.exe
Found: C:\Program Files\Java\jdk-14.0.1\bin\klist.exe
Warning: C:\WINDOWS\system32\klist.exe hides C:\Program Files\Java\jdk-14.0.1\bin\klist.exe
Found: C:\cygwin64\bin\ld.exe
Found: C:\Strawberry\c\bin\ld.exe
Warning: C:\cygwin64\bin\ld.exe hides C:\Strawberry\c\bin\ld.exe
Found: C:\cygwin64\bin\ls.exe
Found: C:\cygwin64\bin\make.exe
Found: C:\cygwin64\bin\mv.exe
Found: C:\WINDOWS\system32\nslookup.exe
Found: C:\cygwin64\bin\patch.exe
Found: C:\Strawberry\c\bin\patch.exe
Warning: C:\cygwin64\bin\patch.exe hides C:\Strawberry\c\bin\patch.exe
Found: C:\cygwin64\bin\perl.exe
Found: C:\Strawberry\perl\bin\perl.exe
Warning: C:\cygwin64\bin\perl.exe hides C:\Strawberry\perl\bin\perl.exe
Found: C:\WINDOWS\system32\replace.exe
Found: C:\cygwin64\bin\rm.exe
Found: C:\cygwin64\bin\sed.exe
Found: C:\cygwin64\bin\sh.exe
Found: C:\WINDOWS\system32\shutdown.exe
Found: C:\cygwin64\bin\sort.exe
Found: C:\WINDOWS\system32\sort.exe
Warning: C:\cygwin64\bin\sort.exe hides C:\WINDOWS\system32\sort.exe
Found: C:\cygwin64\bin\ssh.exe
Found: C:\WINDOWS\System32\OpenSSH\ssh.exe
Warning: C:\cygwin64\bin\ssh.exe hides C:\WINDOWS\System32\OpenSSH\ssh.exe
Found: C:\cygwin64\bin\tar.exe
Found: C:\WINDOWS\system32\tar.exe
Warning: C:\cygwin64\bin\tar.exe hides C:\WINDOWS\system32\tar.exe
Found: C:\cygwin64\bin\test.exe
Found: C:\cygwin64\bin\timeout.exe
Found: C:\WINDOWS\system32\timeout.exe
Warning: C:\cygwin64\bin\timeout.exe hides C:\WINDOWS\system32\timeout.exe
Found: C:\cygwin64\bin\vi.exe
Found: C:\cygwin64\bin\vim.exe
Found: C:\cygwin64\bin\whoami.exe
Found: C:\WINDOWS\system32\whoami.exe
Warning: C:\cygwin64\bin\whoami.exe hides C:\WINDOWS\system32\whoami.exe

  716k 2020/12/28 C:\cygwin64\bin\cygarchive-13.dll - os=4.0 img=0.0 sys=5.2
                  "cygarchive-13.dll" v0.0 ts=2020-12-28 15:11
   39k 2016/09/19 C:\cygwin64\bin\cygargp-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygargp-0.dll" v0.0 ts=2016-09-19 02:13
   65k 2019/05/02 C:\cygwin64\bin\cygassuan-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygassuan-0.dll" v0.0 ts=2019-05-02 12:33
   29k 2020/09/12 C:\cygwin64\bin\cygatomic-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygatomic-1.dll" v0.0 ts=2020-09-12 14:32
   19k 2018/12/20 C:\cygwin64\bin\cygattr-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygattr-1.dll" v0.0 ts=2018-12-20 09:48
  254k 2020/03/31 C:\cygwin64\bin\cygblkid-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygblkid-1.dll" v0.0 ts=2020-03-28 06:22
  132k 2020/10/10 C:\cygwin64\bin\cygbrotlicommon-1.dll - os=4.0 img=1.0 sys=5.2
                  "cygbrotlicommon-1.dll" v0.0 ts=2020-10-10 15:20
   46k 2020/10/10 C:\cygwin64\bin\cygbrotlidec-1.dll - os=4.0 img=1.0 sys=5.2
                  "cygbrotlidec-1.dll" v0.0 ts=2020-10-10 15:21
   66k 2019/07/21 C:\cygwin64\bin\cygbz2-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygbz2-1.dll" v0.0 ts=2019-07-22 00:05
   71k 2018/03/16 C:\cygwin64\bin\cygcares-2.dll - os=4.0 img=0.0 sys=5.2
                  "cygcares-2.dll" v0.0 ts=2018-03-16 02:33
   42k 2020/02/17 C:\cygwin64\bin\cygcbor-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygcbor-0.dll" v0.0 ts=2020-02-17 12:04
   13k 2019/01/02 C:\cygwin64\bin\cygcom_err-2.dll - os=4.0 img=0.0 sys=5.2
                  "cygcom_err-2.dll" v0.0 ts=2019-01-02 02:39
  194k 2019/04/03 C:\cygwin64\bin\cygcrypt-2.dll - os=4.0 img=0.0 sys=5.2
                  "cygcrypt-2.dll" v0.0 ts=2019-04-03 22:05
 2363k 2019/09/11 C:\cygwin64\bin\cygcrypto-1.0.0.dll - os=4.0 img=0.0 sys=5.2
                  "cygcrypto-1.0.0.dll" v0.0 ts=2019-09-11 18:40
 2451k 2020/04/08 C:\cygwin64\bin\cygcrypto-1.1.dll - os=4.0 img=0.0 sys=5.2
                  "cygcrypto-1.1.dll" v0.0 ts=2020-04-08 12:11
  632k 2020/12/14 C:\cygwin64\bin\cygcurl-4.dll - os=4.0 img=0.0 sys=5.2
                  "cygcurl-4.dll" v0.0 ts=2020-12-12 19:20
 1552k 2017/09/28 C:\cygwin64\bin\cygdb-5.3.dll - os=4.0 img=0.0 sys=5.2
                  "cygdb-5.3.dll" v0.0 ts=2017-09-28 20:05
  119k 2017/09/28 C:\cygwin64\bin\cygdb_cxx-5.3.dll - os=4.0 img=0.0 sys=5.2
                  "cygdb_cxx-5.3.dll" v0.0 ts=2017-09-28 20:06
  569k 2017/09/28 C:\cygwin64\bin\cygdb_sql-5.3.dll - os=4.0 img=0.0 sys=5.2
                  "cygdb_sql-5.3.dll" v0.0 ts=2017-09-28 20:06
  154k 2013/10/20 C:\cygwin64\bin\cygedit-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygedit-0.dll" v0.0 ts=2013-10-20 21:56
  181k 2018/09/27 C:\cygwin64\bin\cygexpat-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygexpat-1.dll" v0.0 ts=2018-09-27 18:30
  353k 2020/03/31 C:\cygwin64\bin\cygfdisk-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygfdisk-1.dll" v0.0 ts=2020-03-28 06:23
   27k 2015/11/17 C:\cygwin64\bin\cygffi-6.dll - os=4.0 img=0.0 sys=5.2
                  "cygffi-6.dll" v0.0 ts=2015-11-17 22:14
  136k 2020/10/20 C:\cygwin64\bin\cygfido2-1.dll - os=4.0 img=1.5 sys=5.2
                  "cygfido2-1.dll" v0.0 ts=2020-10-20 19:25
   56k 2019/07/28 C:\cygwin64\bin\cygformw-10.dll - os=4.0 img=0.0 sys=5.2
                  "cygformw-10.dll" v0.0 ts=2019-07-28 17:33
  137k 2019/03/29 C:\cygwin64\bin\cyggc-1.dll - os=4.0 img=0.0 sys=5.2
                  "cyggc-1.dll" v0.0 ts=2019-03-29 22:16
   72k 2020/09/12 C:\cygwin64\bin\cyggcc_s-seh-1.dll - os=4.0 img=0.0 sys=5.2
                  "cyggcc_s-seh-1.dll" v0.0 ts=2020-09-12 14:20
   49k 2019/07/10 C:\cygwin64\bin\cyggdbm-6.dll - os=4.0 img=0.0 sys=5.2
                  "cyggdbm-6.dll" v0.0 ts=2019-07-10 14:53
   13k 2019/07/10 C:\cygwin64\bin\cyggdbm_compat-4.dll - os=4.0 img=0.0 sys=5.2
                  "cyggdbm_compat-4.dll" v0.0 ts=2019-07-10 14:53
  580k 2020/11/16 C:\cygwin64\bin\cyggmp-10.dll - os=4.0 img=0.0 sys=5.2
                  "cyggmp-10.dll" v0.0 ts=2020-11-16 18:53
   21k 2020/11/16 C:\cygwin64\bin\cyggmpxx-4.dll - os=4.0 img=0.0 sys=5.2
                  "cyggmpxx-4.dll" v0.0 ts=2020-11-16 18:53
 1472k 2019/07/29 C:\cygwin64\bin\cyggnutls-30.dll - os=4.0 img=0.0 sys=5.2
                  "cyggnutls-30.dll" v0.0 ts=2019-07-29 03:55
  206k 2020/09/12 C:\cygwin64\bin\cyggomp-1.dll - os=4.0 img=0.0 sys=5.2
                  "cyggomp-1.dll" v0.0 ts=2020-09-12 14:21
  116k 2020/02/16 C:\cygwin64\bin\cyggpg-error-0.dll - os=4.0 img=0.0 sys=5.2
                  "cyggpg-error-0.dll" v0.0 ts=2020-02-16 21:28
  249k 2017/06/28 C:\cygwin64\bin\cyggpgme-11.dll - os=4.0 img=0.0 sys=5.2
                  "cyggpgme-11.dll" v0.0 ts=2017-06-29 00:10
  274k 2018/03/16 C:\cygwin64\bin\cyggssapi_krb5-2.dll - os=4.0 img=0.0 sys=5.2
                  "cyggssapi_krb5-2.dll" v0.0 ts=2018-03-16 03:38
 1070k 2020/03/13 C:\cygwin64\bin\cygguile-2.2-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygguile-2.2-1.dll" v0.0 ts=2020-03-08 21:47
   33k 2017/02/13 C:\cygwin64\bin\cyghistory7.dll - os=4.0 img=0.0 sys=5.2
                  "cyghistory7.dll" v0.0 ts=2017-02-11 22:39
  168k 2019/02/19 C:\cygwin64\bin\cyghogweed-4.dll - os=4.0 img=0.0 sys=5.2
                  "cyghogweed-4.dll" v0.0 ts=2019-02-19 06:59
 1007k 2020/07/13 C:\cygwin64\bin\cygiconv-2.dll - os=4.0 img=0.0 sys=5.2
                  "cygiconv-2.dll" v0.0 ts=2020-07-13 13:57
  114k 2019/07/29 C:\cygwin64\bin\cygidn2-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygidn2-0.dll" v0.0 ts=2019-07-29 03:22
   42k 2016/10/23 C:\cygwin64\bin\cygintl-8.dll - os=4.0 img=0.0 sys=5.2
                  "cygintl-8.dll" v0.0 ts=2016-10-23 07:17
 1560k 2020/03/01 C:\cygwin64\bin\cygisl-22.dll - os=4.0 img=0.0 sys=5.2
                  "cygisl-22.dll" v0.0 ts=2020-03-01 16:46
  188k 2020/06/19 C:\cygwin64\bin\cygjsoncpp-24.dll - os=4.0 img=1.9 sys=5.2
                  "cygjsoncpp-24.dll" v0.0 ts=2020-06-19 20:23
  192k 2018/03/16 C:\cygwin64\bin\cygk5crypto-3.dll - os=4.0 img=0.0 sys=5.2
                  "cygk5crypto-3.dll" v0.0 ts=2018-03-16 03:37
  754k 2018/03/16 C:\cygwin64\bin\cygkrb5-3.dll - os=4.0 img=0.0 sys=5.2
                  "cygkrb5-3.dll" v0.0 ts=2018-03-16 03:37
   37k 2018/03/16 C:\cygwin64\bin\cygkrb5support-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygkrb5support-0.dll" v0.0 ts=2018-03-16 03:36
   48k 2020/11/14 C:\cygwin64\bin\cyglber-2-4-2.dll - os=4.0 img=0.0 sys=5.2
                  "cyglber-2-4-2.dll" v0.0 ts=2020-11-14 15:44
  264k 2020/11/14 C:\cygwin64\bin\cygldap-2-4-2.dll - os=4.0 img=0.0 sys=5.2
                  "cygldap-2-4-2.dll" v0.0 ts=2020-11-14 15:45
  282k 2020/11/14 C:\cygwin64\bin\cygldap_r-2-4-2.dll - os=4.0 img=0.0 sys=5.2
                  "cygldap_r-2-4-2.dll" v0.0 ts=2020-11-14 15:47
   35k 2019/07/28 C:\cygwin64\bin\cygltdl-7.dll - os=4.0 img=0.0 sys=5.2
                  "cygltdl-7.dll" v0.0 ts=2019-07-28 17:44
   73k 2017/06/19 C:\cygwin64\bin\cyglz4-1.dll - os=4.0 img=0.0 sys=5.2
                  "cyglz4-1.dll" v0.0 ts=2017-06-19 15:40
  144k 2019/07/21 C:\cygwin64\bin\cyglzma-5.dll - os=4.0 img=0.0 sys=5.2
                  "cyglzma-5.dll" v0.0 ts=2019-07-22 00:15
  132k 2020/10/31 C:\cygwin64\bin\cyglzo2-2.dll - os=4.0 img=0.0 sys=5.2
                  "cyglzo2-2.dll" v0.0 ts=2020-10-31 16:58
  153k 2020/10/29 C:\cygwin64\bin\cygmagic-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygmagic-1.dll" v0.0 ts=2020-10-29 21:32
  212k 2021/01/07 C:\cygwin64\bin\cygman-2-9-3.dll - os=4.0 img=0.0 sys=5.2
                  "cygman-2-9-3.dll" v0.0 ts=2021-01-07 19:43
   24k 2021/01/07 C:\cygwin64\bin\cygmandb-2-9-3.dll - os=4.0 img=0.0 sys=5.2
                  "cygmandb-2-9-3.dll" v0.0 ts=2021-01-07 19:43
   28k 2019/07/28 C:\cygwin64\bin\cygmenuw-10.dll - os=4.0 img=0.0 sys=5.2
                  "cygmenuw-10.dll" v0.0 ts=2019-07-28 17:32
   42k 2013/08/12 C:\cygwin64\bin\cygmetalink-3.dll - os=4.0 img=0.0 sys=5.2
                  "cygmetalink-3.dll" v0.0 ts=2013-08-13 00:02
  100k 2020/10/25 C:\cygwin64\bin\cygmpc-3.dll - os=4.0 img=0.0 sys=5.2
                  "cygmpc-3.dll" v0.0 ts=2020-10-25 13:36
 2664k 2020/07/11 C:\cygwin64\bin\cygmpfr-6.dll - os=4.0 img=0.0 sys=5.2
                  "cygmpfr-6.dll" v0.0 ts=2020-07-11 14:36
  301k 2019/07/28 C:\cygwin64\bin\cygncursesw-10.dll - os=4.0 img=0.0 sys=5.2
                  "cygncursesw-10.dll" v0.0 ts=2019-07-28 17:30
  205k 2019/02/19 C:\cygwin64\bin\cygnettle-6.dll - os=4.0 img=0.0 sys=5.2
                  "cygnettle-6.dll" v0.0 ts=2019-02-19 06:59
  144k 2019/03/27 C:\cygwin64\bin\cygnghttp2-14.dll - os=4.0 img=0.0 sys=5.2
                  "cygnghttp2-14.dll" v0.0 ts=2019-03-27 04:05
 1020k 2020/03/27 C:\cygwin64\bin\cygp11-kit-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygp11-kit-0.dll" v0.0 ts=2020-03-27 22:30
   14k 2019/07/28 C:\cygwin64\bin\cygpanelw-10.dll - os=4.0 img=0.0 sys=5.2
                  "cygpanelw-10.dll" v0.0 ts=2019-07-28 17:32
  498k 2020/12/29 C:\cygwin64\bin\cygpcre-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygpcre-1.dll" v0.0 ts=2020-12-29 17:11
  603k 2021/01/01 C:\cygwin64\bin\cygpcre2-8-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygpcre2-8-0.dll" v0.0 ts=2021-01-01 16:10
 3398k 2020/06/07 C:\cygwin64\bin\cygperl5_30.dll - os=4.0 img=0.0 sys=5.2
                  "cygperl5_30.dll" v0.0 ts=2020-06-07 09:02
   42k 2020/12/27 C:\cygwin64\bin\cygpipeline-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygpipeline-1.dll" v0.0 ts=2020-12-27 14:15
   53k 2020/04/06 C:\cygwin64\bin\cygpkgconf-3.dll - os=4.0 img=0.0 sys=5.2
                  "cygpkgconf-3.dll" v0.0 ts=2020-04-06 17:37
   42k 2020/12/31 C:\cygwin64\bin\cygpopt-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygpopt-0.dll" v0.0 ts=2020-12-31 12:16
   65k 2019/07/21 C:\cygwin64\bin\cygpsl-5.dll - os=4.0 img=0.0 sys=5.2
                  "cygpsl-5.dll" v0.0 ts=2019-07-21 19:18
  357k 2020/09/12 C:\cygwin64\bin\cygquadmath-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygquadmath-0.dll" v0.0 ts=2020-09-12 14:32
  219k 2017/02/13 C:\cygwin64\bin\cygreadline7.dll - os=4.0 img=0.0 sys=5.2
                  "cygreadline7.dll" v0.0 ts=2017-02-11 22:39
  175k 2020/07/25 C:\cygwin64\bin\cygrhash-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygrhash-0.dll" v0.0 ts=2020-07-25 20:59
   99k 2020/01/09 C:\cygwin64\bin\cygsasl2-3.dll - os=4.0 img=0.0 sys=5.2
                  "cygsasl2-3.dll" v0.0 ts=2020-01-09 02:13
   11k 2015/07/17 C:\cygwin64\bin\cygsigsegv-2.dll - os=4.0 img=0.0 sys=5.2
                  "cygsigsegv-2.dll" v0.0 ts=2015-07-17 22:35
  156k 2020/03/31 C:\cygwin64\bin\cygsmartcols-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygsmartcols-1.dll" v0.0 ts=2020-03-28 06:22
   22k 2019/01/02 C:\cygwin64\bin\cygss-2.dll - os=4.0 img=0.0 sys=5.2
                  "cygss-2.dll" v0.0 ts=2019-01-02 02:39
  156k 2016/03/02 C:\cygwin64\bin\cygssh2-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygssh2-1.dll" v0.0 ts=2016-03-02 18:03
  408k 2019/09/11 C:\cygwin64\bin\cygssl-1.0.0.dll - os=4.0 img=0.0 sys=5.2
                  "cygssl-1.0.0.dll" v0.0 ts=2019-09-11 18:40
  506k 2020/04/08 C:\cygwin64\bin\cygssl-1.1.dll - os=4.0 img=0.0 sys=5.2
                  "cygssl-1.1.dll" v0.0 ts=2020-04-08 12:12
 1676k 2020/09/12 C:\cygwin64\bin\cygstdc++-6.dll - os=4.0 img=0.0 sys=5.2
                  "cygstdc++-6.dll" v0.0 ts=2020-09-12 14:26
   68k 2019/07/29 C:\cygwin64\bin\cygtasn1-6.dll - os=4.0 img=0.0 sys=5.2
                  "cygtasn1-6.dll" v0.0 ts=2019-07-29 03:12
   57k 2019/07/28 C:\cygwin64\bin\cygticw-10.dll - os=4.0 img=0.0 sys=5.2
                  "cygticw-10.dll" v0.0 ts=2019-07-28 17:31
 1612k 2018/08/16 C:\cygwin64\bin\cygunistring-2.dll - os=4.0 img=0.0 sys=5.2
                  "cygunistring-2.dll" v0.0 ts=2018-08-16 20:33
   73k 2015/02/11 C:\cygwin64\bin\cygusb0.dll - os=4.0 img=0.0 sys=5.2
                  "cygusb0.dll" v0.0 ts=2015-02-11 01:16
   27k 2020/03/31 C:\cygwin64\bin\cyguuid-1.dll - os=4.0 img=0.0 sys=5.2
                  "cyguuid-1.dll" v0.0 ts=2020-03-28 06:22
  139k 2020/06/20 C:\cygwin64\bin\cyguv-1.dll - os=4.0 img=0.0 sys=5.2
                  "cyguv-1.dll" v0.0 ts=2020-06-20 06:42
 1238k 2020/09/11 C:\cygwin64\bin\cygxml2-2.dll - os=4.0 img=0.0 sys=5.2
                  "cygxml2-2.dll" v0.0 ts=2020-09-11 15:37
   37k 2020/09/06 C:\cygwin64\bin\cygxxhash-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygxxhash-0.dll" v0.0 ts=2020-09-07 00:04
   83k 2017/03/03 C:\cygwin64\bin\cygz.dll - os=4.0 img=0.0 sys=5.2
                  "cygz.dll" v0.0 ts=2017-03-03 21:42
  757k 2020/12/19 C:\cygwin64\bin\cygzstd-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygzstd-1.dll" v0.0 ts=2020-12-19 16:35
 3473k 2020/08/22 C:\cygwin64\bin\cygwin1.dll - os=4.0 img=0.0 sys=5.2
                  "cygwin1.dll" v0.0 ts=2020-08-22 18:49
    Cygwin DLL version info:
        DLL version: 3.1.7
        DLL epoch: 19
        DLL old termios: 5
        DLL malloc env: 28
        Cygwin conv: 181
        API major: 0
        API minor: 340
        Shared data: 5
        DLL identifier: cygwin1
        Mount registry: 3
        Cygwin registry name: Cygwin
        Installations name: Installations
        Cygdrive default prefix: 
        Build date: 
        Shared id: cygwin1S5


No Cygwin services found.


Cygwin Package Information
Last downloaded files to: C:\Users\hakon\Downloads
Last downloaded files from: https://ftp.fau.de/cygwin/

Package                  Version                         Status
_autorebase              001007-1                        OK
alternatives             1.3.30c-10                      OK
autoconf                 13-1                            OK
autoconf2.1              2.13-12                         OK
autoconf2.5              2.69-4                          OK
automake1.9              1.9.6-11                        OK
base-cygwin              3.8-1                           OK
base-files               4.3-2                           OK
bash                     4.4.12-3                        OK
binutils                 2.34+1git.de9c1b7cfe-1          OK
bzip2                    1.0.8-1                         OK
ca-certificates          2.40-1                          OK
cmake                    3.17.3-2                        OK
coreutils                8.26-2                          OK
crypto-policies          20190218-1                      OK
csih                     0.9.11-1                        OK
curl                     7.74.0-1                        OK
cygrunsrv                1.62-1                          OK
cygutils                 1.4.16-2                        OK
cygwin                   3.1.7-1                         OK
cygwin-devel             3.1.7-1                         OK
dash                     0.5.9.1-1                       OK
diffutils                3.5-2                           OK
editrights               1.03-1                          OK
file                     5.39-1                          OK
findutils                4.6.0-1                         OK
gawk                     5.1.0-1                         OK
gcc-core                 10.2.0-1                        OK
gcc-g++                  10.2.0-1                        OK
getent                   2.18.90-4                       OK
git                      2.30.0-1                        OK
gnupg                    1.4.23-1                        OK
grep                     3.0-2                           OK
groff                    1.22.4-1                        OK
gzip                     1.8-1                           OK
hostname                 3.13-1                          OK
info                     6.7-1                           OK
ipc-utils                1.0-2                           OK
less                     563-1                           OK
libarchive13             3.5.1-1                         OK
libargp                  20110921-3                      OK
libassuan0               2.5.3-1                         OK
libatomic1               10.2.0-1                        OK
libattr1                 2.4.48-2                        OK
libblkid1                2.33.1-2                        OK
libbrotlicommon1         1.0.9-1                         OK
libbrotlidec1            1.0.9-1                         OK
libbz2_1                 1.0.8-1                         OK
libcares2                1.14.0-1                        OK
libcbor                  0.5.0-1                         OK
libcom_err-devel         1.44.5-1                        OK
libcom_err2              1.44.5-1                        OK
libcrypt-devel           4.4.4-1                         OK
libcrypt2                4.4.4-1                         OK
libcurl-devel            7.74.0-1                        OK
libcurl4                 7.74.0-1                        OK
libdb5.3                 5.3.28-2                        OK
libedit0                 20130712-1                      OK
libexpat1                2.2.6-1                         OK
libfdisk1                2.33.1-2                        OK
libffi6                  3.2.1-2                         OK
libfido2                 1.5.0-1                         OK
libgc1                   8.0.4-1                         OK
libgcc1                  10.2.0-1                        OK
libgdbm6                 1.18.1-1                        OK
libgdbm_compat4          1.18.1-1                        OK
libgmp-devel             6.2.1-1                         OK
libgmp10                 6.2.1-1                         OK
libgmpxx4                6.2.1-1                         OK
libgnutls30              3.6.9-1                         OK
libgomp1                 10.2.0-1                        OK
libgpg-error0            1.37-1                          OK
libgpgme11               1.9.0-1                         OK
libgssapi_krb5_2         1.15.2-2                        OK
libguile2.2_1            2.2.7-1                         OK
libhogweed4              3.4.1-1                         OK
libiconv2                1.16-2                          OK
libidn2_0                2.2.0-1                         OK
libintl8                 0.19.8.1-2                      OK
libisl22                 0.22.1-2                        OK
libjsoncpp24             1.9.3-1                         OK
libk5crypto3             1.15.2-2                        OK
libkrb5_3                1.15.2-2                        OK
libkrb5support0          1.15.2-2                        OK
libltdl7                 2.4.6-7                         OK
liblz4_1                 1.7.5-1                         OK
liblzma5                 5.2.4-1                         OK
liblzo2_2                2.10-2                          OK
libmetalink3             0.1.2-1                         OK
libmpc3                  1.2.1-1                         OK
libmpfr6                 4.1.0-1                         OK
libncursesw10            6.1-1.20190727                  OK
libnettle6               3.4.1-1                         OK
libnghttp2_14            1.37.0-1                        OK
libopenldap2_4_2         2.4.56-1                        OK
libp11-kit0              0.23.20-1                       OK
libpcre1                 8.44-2                          OK
libpcre2_8_0             10.36-1                         OK
libpipeline1             1.5.3-1                         OK
libpkgconf3              1.6.3-1                         OK
libpopt-common           1.18-1                          OK
libpopt0                 1.18-1                          OK
libpsl5                  0.21.0-1                        OK
libquadmath0             10.2.0-1                        OK
libreadline-devel        7.0.3-3                         OK
libreadline7             7.0.3-3                         OK
librhash0                1.4.0-1                         OK
libsasl2_3               2.1.27-1                        OK
libsigsegv2              2.10-2                          OK
libsmartcols1            2.33.1-2                        OK
libss-devel              1.44.5-1                        OK
libss2                   1.44.5-1                        OK
libssh2_1                1.7.0-1                         OK
libssl-devel             1.1.1f-1                        OK
libssl1.0                1.0.2t-1                        OK
libssl1.1                1.1.1f-1                        OK
libstdc++6               10.2.0-1                        OK
libtasn1_6               4.14-1                          OK
libunistring2            0.9.10-1                        OK
libusb0                  1.2.6.0-2                       OK
libuuid1                 2.33.1-2                        OK
libuv1                   1.38.0-1                        OK
libxml2                  2.9.10-2                        OK
libxxhash0               0.8.0-1                         OK
libzstd1                 1.4.8-1                         OK
login                    1.13-1                          OK
m4                       1.4.18-1                        OK
make                     4.3-1                           OK
man-db                   2.9.3-4                         OK
mintty                   3.4.4-1                         OK
ncurses                  6.1-1.20190727                  OK
openssh                  8.4p1-2                         OK
openssl                  1.1.1f-1                        OK
p11-kit                  0.23.20-1                       OK
p11-kit-trust            0.23.20-1                       OK
patch                    2.7.4-1                         OK
perl                     5.30.3-1                        OK
perl-Encode-Locale       1.05-3                          OK
perl-Error               0.17029-1                       OK
perl-File-Listing        6.14-1                          OK
perl-HTML-Parser         3.75-1                          OK
perl-HTML-Tagset         3.20-7                          OK
perl-HTTP-Cookies        6.10-1                          OK
perl-HTTP-Daemon         6.12-1                          OK
perl-HTTP-Date           6.05-1                          OK
perl-HTTP-Message        6.27-1                          OK
perl-HTTP-Negotiate      6.01-7                          OK
perl-IO-HTML             1.004-1                         OK
perl-libwww-perl         6.52-1                          OK
perl-LWP-MediaTypes      6.04-2                          OK
perl-Net-HTTP            6.19-2                          OK
perl-Scalar-List-Utils   1.55-1                          OK
perl-TermReadKey         2.38-2                          OK
perl-TimeDate            2.33-1                          OK
perl-Try-Tiny            0.30-2                          OK
perl-Unicode-Normalize   1.26-2                          OK
perl-URI                 5.05-1                          OK
perl-WWW-RobotRules      6.02-7                          OK
perl_autorebase          5.30.3-1                        OK
perl_base                5.30.3-1                        OK
pkg-config               1.6.3-1                         OK
pkgconf                  1.6.3-1                         OK
publicsuffix-list-dafsa  20200326-1                      OK
rebase                   4.4.4-1                         OK
rsync                    3.2.3+20200903+git9f9240b-4     OK
run                      1.3.4-2                         OK
sed                      4.4-1                           OK
tar                      1.33-1                          OK
terminfo                 6.1-1.20190727                  OK
terminfo-extra           6.1-1.20190727                  OK
texinfo                  6.7-1                           OK
tree                     1.7.0-1                         OK
tzcode                   2020f-1                         OK
tzdata                   2020f-1                         OK
util-linux               2.33.1-2                        OK
vim                      8.2.0486-1                      OK
vim-common               8.2.0486-1                      OK
vim-minimal              8.2.0486-1                      OK
w32api-headers           8.0.0-1                         OK
w32api-runtime           8.0.0-1                         OK
wget                     1.21.1-1                        OK
which                    2.20-2                          OK
windows-default-manifest 6.4-1                           OK
xxd                      8.2.0486-1                      OK
xz                       5.2.4-1                         OK
zlib0                    1.2.11-1                        OK
zstd                     1.4.8-1                         OK
Use -h to see help about each section

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Type of symlink file and readshortcut
  2021-06-22 13:47 Type of symlink file and readshortcut Håkon Hægland
@ 2021-06-23 22:24 ` Mark Geisert
  2021-06-24  0:32   ` Doug Henderson
  0 siblings, 1 reply; 3+ messages in thread
From: Mark Geisert @ 2021-06-23 22:24 UTC (permalink / raw)
  To: cygwin

Hi Håkon,

Håkon Hægland via Cygwin wrote:
> I am on Windows 10 Home, 21H1. I am trying to understand what type of files
> are generated by the "ln -s" command. According to this blog:
> 
> https://blogs.windows.com/windowsdeveloper/2016/12/02/symlinks-windows-10/
> 
> starting with Windows 10 Insiders build 14972, native symlinks can be
> created without needing to elevate the console as administrator.
> 
> To enable this feature, go to "Windows Security" -> "For developers", and
> turn on "Developer mode".
> 
> Further, according to:
> 
> https://cygwin.com/cygwin-ug-net/using-cygwinenv.html
> https://cygwin.com/cygwin-ug-net/using.html#pathnames-symlink
> 
> Cygwin "ln -s" should create a native symlink if available, and otherwise
> create a .lnk shortcut files with a special header and the DOS READONLY
> attribute set. I tried this, first I switched off "Developer mode" and ran:
> 
> $ echo a > a.txt
> $ CYGWIN=winsymlinks:native ln -s a.txt b.lnk  # NOTE: should not create
> native symlink since developer mode is not on..
> $ ls -l
> total 1.0K
> -rw-r--r-- 1 hakon hakon 2 Jun 22 15:12 a.txt
> lrwxrwxrwx 1 hakon hakon 5 Jun 22 15:17 b.lnk -> a.txt
> $ readshortcut.exe -t b.lnk
> readshortcut: Load failed on C:\cygwin64\home\hakon\test\symlink2\b.lnk
> 
> Why does readshortcut.exe fail to read the b.lnk file ? Are there some
> other tools that can determine the type of the b.lnk file? Is it a native
> symlink or a Windows shortcut file?

The file b.lnk is not a Windows shortcut file, which is why readshortcut is unable 
to read it as such.  I reproduced your report locally and tried to find some 
method of displaying what specific type of file b.lnk is, but was unsuccessful. 
Most tools just identify it as a symbolic link.

..mark

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Type of symlink file and readshortcut
  2021-06-23 22:24 ` Mark Geisert
@ 2021-06-24  0:32   ` Doug Henderson
  0 siblings, 0 replies; 3+ messages in thread
From: Doug Henderson @ 2021-06-24  0:32 UTC (permalink / raw)
  To: cygwin

On Wed, 23 Jun 2021 at 16:28, Mark Geisert <mark@maxrnd.com> wrote:
> Håkon Hægland via Cygwin wrote:
> > I am on Windows 10 Home, 21H1. I am trying to understand what type of files
> > are generated by the "ln -s" command. According to this blog:
> >
> > https://blogs.windows.com/windowsdeveloper/2016/12/02/symlinks-windows-10/
> >
> > starting with Windows 10 Insiders build 14972, native symlinks can be
> > created without needing to elevate the console as administrator.
> >
> > To enable this feature, go to "Windows Security" -> "For developers", and
> > turn on "Developer mode".

I expect Developer Mode grants a lot of unnecessary permissions.

In the interest of minimal changes to security policy,
the following process worked for me.

I don't know how to do this through settings, but

open Control Panel
open Administrative Tools
open Local Security Policy

Using the tree in the left panel:
open Local Policies
open User Rights Assignment
In the right panel:
Right-click on Create symbolic links -> Properties
add the user id(s) that should be able to create symbolic links

This allows the added user(s) to set
CYGWIN=winsymlinks:nativestrict
and create native windows symbolic links in cygwin.
This process grants 1 permission which is surely frantin fewer than
Developer Mode.

I have
CYGWIN_NT-10.0 mars 3.2.0(0.340/5/3) 2021-03-29 08:42 x86_64 Cygwin
on
Microsoft Windows [Version 10.0.19043.1055]

Windows Pro, now with 21H1 installed.

HTH
Doug

-- 
Doug Henderson, Calgary, Alberta, Canada - from gmail.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-06-24  0:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-22 13:47 Type of symlink file and readshortcut Håkon Hægland
2021-06-23 22:24 ` Mark Geisert
2021-06-24  0:32   ` Doug Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).