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:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=K5XvOZhkbmSipfQy g5FWIGi0yvLRy/cIu+sb4TSuMdTkd2BTUHmzvvtyQE+Br1JfQMYNpu7wp+VitqHr hKaYpbSTOoHTrt85iKYZNU1qJuk2d8F01li/gj5UoUywlIGFR7OkmKDYDO+TlxFx vSzFZqUs2WhK45vyRzHr7QT2hJk= 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:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; s=default; bh=NXRHzJtgSEhbx3xpiEMT3E wcR6Q=; b=IJ2KKknAGuWCrDxwNjVbkD7kVD9vTK0E3NSME28WgxjnAtFJVB83iu kpx1jw4LUmEo2xqKIKy3vGtG2TlYyWa1w7aLErWYkAy4Kh2wzIpmlQ9VORf1D0dR LIlRM9SLSW+aMsjxbC+FpzcmqYuDWSPZJVZmi3dtpBId4/1/Tllko= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=2.0 required=5.0 tests=BAYES_50,FREEMAIL_FROM,KAM_THEBAT,MIME_BASE64_BLANKS,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=H*F:D*yandex.ru, H*x:Bat!, H*UA:Bat!, suspiciously X-HELO: forward1o.cmail.yandex.net Authentication-Results: smtp2h.mail.yandex.net; dkim=pass header.i=@yandex.ru X-Yandex-Suid-Status: 1 0,1 0 Date: Tue, 6 Sep 2016 21:38:58 +0300 From: Andrey Repin Reply-To: cygwin AT cygwin DOT com Message-ID: <1489341049.20160906213858@yandex.ru> To: =?utf-8?Q?Morten_Kj=C3=A6rulff?= , cygwin AT cygwin DOT com Subject: Re: permisions: cat from bash vs type from cmd In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id u86IoX1N003561 Greetings, Morten Kjærulff! > Hi, > I am sure there is a fine explanation for what I see here, but what do > I need to read to understand, or what is the explanation. > My friend is trying to protect his .netrc on his virtual server, which > works when I uses native windows commands, but I can see his file when > I uses cygwin? I am running on my own PC and we are on the same > domain. Do you run Cygwin with administrator privileges? > morten AT mortenpc ~ > $ cat //virtualserver/d$/mhome/.netrc > machine computerxxx login userxxx password passxxx > morten AT mortenpc ~ > $ cmd > Microsoft Windows [version 6.1.7601] > Copyright (c) 2009 Microsoft Corporation. Alle rettigheder forbeholdes. > D:\mhome>type \\virtualserver\d$\mhome\.netrc > Adgang nægtet. That sounds suspiciously similar to the different access tokens. Running both cmd and type in the same session would be more illustrative. > D:\mhome>exit > morten AT mortenpc ~ > $ mount > D:/cygwin/bin on /usr/bin type ntfs (binary,noacl) > D:/cygwin/lib on /usr/lib type ntfs (binary,noacl) > D:/cygwin on / type ntfs (binary,auto) > D:/mhome on /home/morten type ntfs (binary,noacl) > C: on /cygdrive/c type ntfs (binary,noacl,posix=0,noumount,auto) > D: on /cygdrive/d type ntfs (binary,noacl,posix=0,noumount,auto) > H: on /cygdrive/h type ntfs (binary,noacl,posix=0,noumount,auto) > O: on /cygdrive/o type ntfs (binary,noacl,posix=0,noumount,auto) > P: on /cygdrive/p type ntfs (binary,noacl,posix=0,noumount,auto) > S: on /cygdrive/s type ntfs (binary,noacl,posix=0,noumount,auto) > X: on /cygdrive/x type ntfs (binary,noacl,posix=0,noumount,auto) > morten AT mortenpc ~ > $ > "Adgang nægtet." means access denied. -- With best regards, Andrey Repin Tuesday, September 6, 2016 21:36:33 Sorry for my terrible english...