delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/09/06/10:11:51

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:mime-version:from:date:message-id:subject:to
:content-type:content-transfer-encoding; q=dns; s=default; b=jwH
GrgMt0+ZBZi5BZQs251Q5fUF/lnM6XcPWmHfCEI8aSQyPBi3FeFot+lx4PpWruoh
pz8lZt2pM8hqCaOsOenQDhf/olEWKjndkax9Zwx1q7sdoDOXuf9/kgQ3gIVICNIz
vhVSlbviqC1mUXS3NORqrCMbBUljA0TyrdC38n8I=
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:mime-version:from:date:message-id:subject:to
:content-type:content-transfer-encoding; s=default; bh=zNkW2FJXh
PZwN0LZ7SwwkAs9pTc=; b=Yjsy8dZmERHzk7jnPW0+jvoz3lB/QpQgb7PLat3RJ
03eS3MBUdGAYKSrWxX9Xrkd1szKiyQoG4+n3/CBYvkc+DTFMhC7f6iep15OUT/kA
mSVsRVBfSR3CxR20n9I5zHmiARFnC1stXrnfrzRkyWW5fhfdXN49Y/bhKsM2szX8
8E=
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=-0.8 required=5.0 tests=AWL,BAYES_05,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=alle, HX-HELO:sk:mail-lf, cygdrive, Corporation
X-HELO: mail-lf0-f42.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=6Mz9gii+7xSFVgNTcKjj0jEdAZHlid5Aqz4YiBJRRpE=; b=cUZG1z3sVtvvb5c+lA057ULQQRaRuvBGGKrCr+9RQ/MXn7IcAQixXXyaQPQb9isHav XRtZxiRFHu7RJUYK7h9qjH3waVdRMKtXNYqe5ko+d36fcELIcnnd9nUSlwAcbVUuQHWv 6QzismmBBnN4BksP6EeQRJu+NbuLuvUVf3JVFKXKdv07lh5ugS+z1MfkDZKyIlAjNIuC dg6I03TxHQhGTuUm/HgIdFdKDRLq6DtjkZv5Igb4vEc1O8B7U0uWCBYcd99aye3tLOl+ YHZdE/N23HGqV99Ot/aJqLkwjZ+c90ad/hPjJBAzUz/d7dH1j4x5eBjj0NBgdCv6G8Dd 8NNA==
X-Gm-Message-State: AE9vXwO9+m/q+S4aXnybByKqzwRY5XBlPfoQca2Z6ThY2z08KzJ4nRo9LRfxdHo3uKq4aI2mA2YJy7ny/0h0MQ==
X-Received: by 10.25.20.170 with SMTP id 42mr5208941lfu.194.1473171084318; Tue, 06 Sep 2016 07:11:24 -0700 (PDT)
MIME-Version: 1.0
From: =?UTF-8?Q?Morten_Kj=C3=A6rulff?= <mortenkjarulff AT gmail DOT com>
Date: Tue, 6 Sep 2016 16:11:03 +0200
Message-ID: <CA+7cx1qdpvxOtemqyMFNdTZMZY4X8b7xLWeGsMRe-winOH=YhA@mail.gmail.com>
Subject: permisions: cat from bash vs type from cmd
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id u86EBjsp015595

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.

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.

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.

/Morten

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


- Raw text -


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