From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 114092 invoked by alias); 2 Nov 2015 23:50:12 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 114083 invoked by uid 89); 2 Nov 2015 23:50:12 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=4.1 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: smtp.ht-systems.ru Received: from smtp.ht-systems.ru (HELO smtp.ht-systems.ru) (78.110.50.177) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 02 Nov 2015 23:50:10 +0000 Received: from [95.165.144.62] (helo=darkdragon.lan) by smtp.ht-systems.ru with esmtpa (Exim 4.80.1) (envelope-from ) (Authenticated sender: postmaster@rootdir.org) id 1ZtOrS-0002hV-Lo ; Tue, 03 Nov 2015 02:50:02 +0300 Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Mon, 02 Nov 2015 23:38:55 -0000 Date: Mon, 02 Nov 2015 23:50:00 -0000 From: Andrey Repin Reply-To: cygwin@cygwin.com Message-ID: <15510235307.20151103023855@yandex.ru> To: Linda Walsh , cygwin@cygwin.com Subject: Re: Using cp converts windows junctions to a cywin symlink; a security-config override In-Reply-To: <5637F28A.40104@tlinx.org> References: <1667216939.20151102225151@yandex.ru> <5637F28A.40104@tlinx.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-11/txt/msg00055.txt.bz2 Greetings, Linda Walsh! >> > I was copying a directory of files, some of which were windows junctions. >> > These got converted to a cygwin symlink. Although I am impressed that there >> > are such a thing for those OSs/drives that do not support such things, for those >> > that do, I think it would be good to keep the copy a junction. Otherwise, >> > things can get messy. >> > Can this be corrected? > --- > (BTW -- you do know about the 'winsymlinks:native' setting in the > CYGWIN environment variable? It might be of some use.) > Andrey wrote: >> Unfortunately, even on systems, that do support symlinks functionality, >> it is restricted by UAC and not easily unlocked. > --- > Actually that's control by Windows group policy. Yes, I know. But when UAC is enabled, it overriding this policy setting. That's why I said that you need either admin console, or UAC turned off. > It's alot like whether not 'users' can control 'mounts' on linux. > It can be allowed, but doing so categorically might not be considered > wise. Microsoft does not follow common logic. >> You'd need an admin shell or a user profile with UAC turned off and >> permissions correctly configured to exploit native symlinks. > --- > Or the system administrator would have to enable user-control of local > symlinks. ... > On my windows machine, unprivileged users are able to create all 4 types > of symbolic links. Do you have UAC enabled? >> And Cygwin does not support creation of directory junctions to the best >> of my knowledge. :( > --- > Neither does linux support creation of user-controlled mounts. However, Windows allows creation of directory junctions just fine. But blocks Symlinks. -- With best regards, Andrey Repin Tuesday, November 3, 2015 02:34:22 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