delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/06/23/20:32:57

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CD58D398203C
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1624494775;
bh=HCscoSheq8rlOcUr9cH3TaqJ1hb6WXXU+DwtPoUPM2E=;
h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=xkZRH96x6/wGylVLIQt1UmXN6/Ljb+T1Kh3VoFOMYv8AHlTZqIYRzkVqZVX0M42+C
DoO3txKlNWzNgYjwtHwzhHgfh0MiicyJ+eWdr+wJHMN+hdJCShswia9bb7acJY3GCX
ynsOU7xwplPciV3E51UqD/4R1HomYxK5TQwjCrQw=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 752F73844036
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: <CACxbc=Bimk7ky3uOTL5YwbMX5Qr2hRGWRfR+7ZwBwutRZPZeSg AT mail DOT gmail DOT com>
<462e4a4c-8648-c7b2-267a-db63851dba4b AT maxrnd DOT com>
In-Reply-To: <462e4a4c-8648-c7b2-267a-db63851dba4b@maxrnd.com>
Date: Wed, 23 Jun 2021 18:32:10 -0600
Message-ID: <CAJ1FpuMTbgiWJZKjNdmO_zyx9gB6cTKy=Npk0obm4BPmS+SiwA@mail.gmail.com>
Subject: Re: Type of symlink file and readshortcut
To: cygwin <cygwin AT cygwin DOT com>
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 AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Doug Henderson via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Doug Henderson <djndnbvg AT gmail DOT com>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 15O0Wuqr007753

On Wed, 23 Jun 2021 at 16:28, Mark Geisert <mark AT maxrnd DOT 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

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019