public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* permisions: cat from bash vs type from cmd
@ 2016-09-06 14:11 Morten Kjærulff
  2016-09-06 18:50 ` Andrey Repin
  0 siblings, 1 reply; 3+ messages in thread
From: Morten Kjærulff @ 2016-09-06 14:11 UTC (permalink / raw)
  To: cygwin

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@mortenpc ~
$ cat //virtualserver/d$/mhome/.netrc
machine computerxxx login userxxx password passxxx

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: permisions: cat from bash vs type from cmd
  2016-09-06 14:11 permisions: cat from bash vs type from cmd Morten Kjærulff
@ 2016-09-06 18:50 ` Andrey Repin
  2016-09-07 11:05   ` Andrey Repin
  0 siblings, 1 reply; 3+ messages in thread
From: Andrey Repin @ 2016-09-06 18:50 UTC (permalink / raw)
  To: Morten Kjærulff, cygwin

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@mortenpc ~
> $ cat //virtualserver/d$/mhome/.netrc
> machine computerxxx login userxxx password passxxx

> morten@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@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@mortenpc ~
> $

> "Adgang nægtet." means access denied.


-- 
With best regards,
Andrey Repin
Tuesday, September 6, 2016 21:36:33

Sorry for my terrible english...

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: permisions: cat from bash vs type from cmd
  2016-09-06 18:50 ` Andrey Repin
@ 2016-09-07 11:05   ` Andrey Repin
  0 siblings, 0 replies; 3+ messages in thread
From: Andrey Repin @ 2016-09-07 11:05 UTC (permalink / raw)
  To: Andrey Repin, cygwin

Greetings, Andrey Repin!

> Running both cmd and type in the same session would be more illustrative.

"cat and type"
Sorry.


-- 
With best regards,
Andrey Repin
Wednesday, September 7, 2016 13:53:06

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-09-07 11:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-06 14:11 permisions: cat from bash vs type from cmd Morten Kjærulff
2016-09-06 18:50 ` Andrey Repin
2016-09-07 11:05   ` Andrey Repin

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