delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/10/19/04:17:19

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=b98Oo4Tux46HBJBpK5GUCrhRNlnLp6yTpAwOHv4Z4g7BYffBxyiRg
/97+ERXfxjxgdKomr28ugVbAdxxaUDjO5M0OV7oQpgkl6a1vRIdLa4WBZ3qdkD7d
frNS7qGXGnCt6uQjdwm4eU0EPsJEcO4q+6/rltywr4M7ARu3YZkNeo=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=IN3XZRRPCqFOxsLAwb2+cnCA0Jk=; b=ZBaDrmVmFFcTZfu52XdaSyT4Mfmb
YKHu+1NEkbQ+MRjp9XZ8XsmYU6zCRnaKAQGp1MmJgO4oUzX5Cj2zpJJgRFEZkNaQ
giWpkKNZEKt2xXOFmJM8XfMrLYkkK5/NELj5mBYXNa3VJ588hiuSoDAPNtsVi22z
6bCe+PLfwEspaGs=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2
X-HELO: calimero.vinschen.de
Date: Sat, 19 Oct 2013 10:17:02 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: lnn, a native symlink wrapper script (Was: fstab not automounting...)
Message-ID: <20131019081702.GC32365@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <21087 DOT 31348 DOT 870054 DOT 516829 AT consult DOT pretender> <20131017093846 DOT GA26304 AT calimero DOT vinschen DOT de> <21087 DOT 64099 DOT 660195 DOT 262020 AT consult DOT pretender> <20131017151929 DOT GR18358 AT calimero DOT vinschen DOT de> <21088 DOT 45642 DOT 198102 DOT 464479 AT consult DOT pretender> <20131018074744 DOT GD23477 AT calimero DOT vinschen DOT de> <5261762F DOT 30707 AT etr-usa DOT com> <20131018182418 DOT GN23477 AT calimero DOT vinschen DOT de> <52618723 DOT 8050800 AT etr-usa DOT com>
MIME-Version: 1.0
In-Reply-To: <52618723.8050800@etr-usa.com>
User-Agent: Mutt/1.5.21 (2010-09-15)

--lCAWRPmW1mITcIfM
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Oct 18 13:08, Warren wrote:
> On 10/18/2013 12:24, Corinna Vinschen wrote:
> >
> >- The user token contains a privilege, but it's disabled.
> >
> >   The process can not perform the dangerous action secured by that
> >   privilege.  But it can enable the privilege if it wants to perform
> >   that action.
>=20
> Thanks for the explanation.
>=20
> I tried two machines here and apparently the privilege can be set on
> both of them without being Administrator,

Are you sure?  Did you test it by running

  $ CYGWIN=3Dwinsymlinks:native ln -s foo bar

by any chance?  If so, there's a surprise waiting for you.  The symlinks
will be generated, but they are Cygwin default symlinks, not native
symlinks.  Try this instead

  $ CYGWIN=3Dwinsymlinks:nativestrict ln -s foo bar

and see the user's guide:

  http://cygwin.com/cygwin-ug-net/using.html#pathnames-symlinks
  http://cygwin.com/cygwin-ug-net/using-cygwinenv.html

> so I don't even know if
> it's worth chasing this test.  That is, I don't know if ln(1) prints
> a helpful error when the link cannot be created.  If it says
> something vague like "permission denied", I'm thinking it would be
> helpful to pre-diagnose the problem in the wrapper script.

No, it's the much better "Operation not permitted" (EPERM).  It's
perfectly matching the situation so I don't think any further diagnosis
is necessary (unless you want to explain the user exactly what's going
on).  But still, it will only occur with CYGWIN=3Dwinsymlinks:nativestrict,
see above.


Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--lCAWRPmW1mITcIfM
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)

iQIcBAEBAgAGBQJSYj/+AAoJEPU2Bp2uRE+g2lQQAIF4FobiQzq9PzWw/Q5a4bD3
7zhRKzx1DHnr9Q+rpOG4eGOlqIJ8tp+iPPROxfxKvoVAOaH9q+ANig8YLGZXntGT
fbCM2+IxnRRxQ1xGnNmgSdfbLCehjtLKKkCRBVlTNIQX9Kdae+vVYgibG9Sdn3U/
GWmX/6YpaowbcyMRHqLZToRaq1Q0xu60y81sJ5IgzLmt5dL+gVFLpEca0CFMHoAS
CTnyXfIlHpmCzVdhlCDK/WJv2hQA73jmm9gfbpp8oSJCWrsPvKntyyh7taLElBPV
iI8WTiiM3fZ07w0l9zROWQSwitKnLOhuiUR8sJqng/Kf4yH/AuOEmlXcFv9wAo1l
3Dv+fe0WlAmIX/2uCXZ0mZ9AhKAh7hB0SJogikBVABgrhkR1g6Lu3Q74Wes741DW
Rgr4goxq9uXtm27oXNZ/+FYvJbhIn/CjDzkSfz/yqjJ2GoZ3swEwwc0pkrwk6gRR
YRpBL4H3aL1VZnBQOH/hAyaxvnryZ61Xz0JWilf1qnl790fi60eFyx/JSEt535h7
yN5sj8yVzp0iBt9ULYKg37vBkABeiRu2XjqJEP9pCj/xgVcudXUEpUtl5MWEWtdH
s6jlyZuKBfSp9wKIXLU0YQGrL0zK3sWUNrtW5gvxBbxXEWmD1q+uJxPQTNeXPvyY
UFo4xOankSrKryHx1md/
=UGsG
-----END PGP SIGNATURE-----

--lCAWRPmW1mITcIfM--

- Raw text -


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