public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Andrey Repin <anrdaemon@yandex.ru>
To: David Macek <david.macek.0@gmail.com>, cygwin@cygwin.com
Subject: Re: symbolic linls
Date: Wed, 10 Aug 2016 13:59:00 -0000	[thread overview]
Message-ID: <516102654.20160810134607@yandex.ru> (raw)
In-Reply-To: <7bb4f190-d9a6-f7ab-d278-95cc945cd5b8@gmail.com>

Greetings, David Macek!

>>>> As i understand Cygwin will soon no longer support Windows XP resp.
>>>> 2003. This means that only Windows versions with native symbolic link
>>>> functionality will be supported after that. Would it be possible to use
>>>> only native symbolic links throughout esp. during setup.exe?
>> 
>>> Short answer: No.
>> 
>>> Long answer:
>> 
>>> There are limitations to NTFS symlinks, other than OS support, that make
>>> them incompatible with POSIX symlinks. See
>>> <https://cygwin.com/cygwin-ug-net/using.html#pathnames-symlinks> and
>>> <https://github.com/git-for-windows/git/wiki/Symbolic-Links> for more information.
>> 
>> There's limitations, yes. But what do you mean by "incompatibility" ?

> I mean differences between how NTFS symlinks work and how POSIX symlinks
> (that Cygwin apps expect) work. It's described on the Git-for-Windows page I linked. Quoting:

>> You need the SeCreateSymbolicLinkPrivilege privilege, which is by default
>> assigned only to Administrators but can be assigned to normal users using
>> Local Security Policy (or via Active Directory). Note that regardless of
>> privilege assignment, members of the Administrators group will also require
>> UAC elevation.

That's limitation, but not necessarily an incompatibility.
Do note "members of Administrators group". If your account is not a member of
administrators group (which I don't see as necessity in everyday use), this
will work transparently.
Having ~14 years of experience, going through "all admin" in Win'9x to
"default admin" in NT/2k, and "admin with UAC" in Vista+, I'm strongly
considering excluding my account from Admins/Domain Admins group for my
upcoming home AD that I'm preparing to solve some of the interoperability
limitations of POSIX permissions system. Or, more precisely, limitations of
Samba's treatment of POSIX permissions system :/ One can only wonder, why they
have gone such a route.

>> Symbolic links on remote filesystems are disabled by default (call fsutil
>> behavior query SymlinkEvaluation to find out)

Symlinks on remote FS didn't work straight in the best times.

>> Symbolic links will only work on NTFS, not on FAT

That's a given.

>> Windows' symbolic links are typed: they need to know whether they point to
>> a directory or to a file

This is of no concern for an application.


-- 
With best regards,
Andrey Repin
Wednesday, August 10, 2016 13:31:16

Sorry for my terrible english...


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

  reply	other threads:[~2016-08-10 10:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-05 13:47 Franz Fehringer
2016-08-05 14:15 ` David Macek
2016-08-10  4:14   ` Andrey Repin
2016-08-10  7:42     ` Warren Young
2016-08-10 11:04     ` David Macek
2016-08-10 13:59       ` Andrey Repin [this message]
2016-08-10 14:46         ` David Macek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=516102654.20160810134607@yandex.ru \
    --to=anrdaemon@yandex.ru \
    --cc=cygwin@cygwin.com \
    --cc=david.macek.0@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).