From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt1-x834.google.com (mail-qt1-x834.google.com [IPv6:2607:f8b0:4864:20::834]) by sourceware.org (Postfix) with ESMTPS id 752F73844036 for ; Thu, 24 Jun 2021 00:32:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 752F73844036 Received: by mail-qt1-x834.google.com with SMTP id g12so3587301qtb.2 for ; Wed, 23 Jun 2021 17:32:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-transfer-encoding; bh=mA7Ij5+YVRX8BN09rvRXz+2+VGksvaEY14f5Z1VnYKQ=; b=Vb/u6UBZrIYd8QfQS7/6d64cnfxZWFAqUXziE0CM/M2EFIM5qOV3BbloWaNWGiE2qp LwsCt8Z3I2ESBcFJ4E+UQCmn+zYIh3h3q/VPYJMoaDDUZLIH3BRyOKe3hIz7TqdSJKJq Dgij5ScvvtNLANGOAfybzhY71qGDA5LRYHBXrYT39AsVTpoolj8BlBCTZbqnYJof5y/m LDtbGUQVUfAjyOjbPYQLz8SlYKD0brb204gMc+KREZmhptH0yf9NoBQJ6vMPNwB2I6DD C/VNFYOGArRtYV7YJHvaKJThDbPktO+Jnil3ROUbvsga2UGyw8e9CFqC56NL9rDiq1MJ HLlw== X-Gm-Message-State: AOAM532klpr25FhjdLNdGDLUddfJMKvPWgLSCT64zlX+t1SLFMBCIvk7 irwS9FbfWcHh5uZ9D6G+vhi14ktOt+xQxG+UAlW0x71FdFIu2A== X-Google-Smtp-Source: ABdhPJzlz4DlKKBbLZurQjkQhqapIJlYekOnb6LvjOUYTk5lL6/Aysvox4KdV04I9qBw9nd3U3aEU26KPw0+gqQcAQw= X-Received: by 2002:a05:622a:392:: with SMTP id j18mr2434376qtx.195.1624494741812; Wed, 23 Jun 2021 17:32:21 -0700 (PDT) MIME-Version: 1.0 References: <462e4a4c-8648-c7b2-267a-db63851dba4b@maxrnd.com> In-Reply-To: <462e4a4c-8648-c7b2-267a-db63851dba4b@maxrnd.com> From: Doug Henderson Date: Wed, 23 Jun 2021 18:32:10 -0600 Message-ID: Subject: Re: Type of symlink file and readshortcut To: cygwin Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, FROM_LOCAL_NOVOWEL, HK_RANDOM_ENVFROM, HK_RANDOM_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jun 2021 00:32:25 -0000 On Wed, 23 Jun 2021 at 16:28, Mark Geisert wrote: > H=C3=A5kon H=C3=A6gland via Cygwin wrote: > > I am on Windows 10 Home, 21H1. I am trying to understand what type of f= iles > > 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", a= nd > > 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=3Dwinsymlinks: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 --=20 Doug Henderson, Calgary, Alberta, Canada - from gmail.com