delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/10/15/12:10:45

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <31b7d2790710150910s7bc195b9x8db3cb7afb5b1dd2@mail.gmail.com>
Date: Mon, 15 Oct 2007 11:10:23 -0500
From: "DePriest, Jason R." <jrdepriest AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: cygwin makes shared folders on vista
In-Reply-To: <13214221.post@talk.nabble.com>
MIME-Version: 1.0
References: <12429132 DOT post AT talk DOT nabble DOT com> <13177791 DOT post AT talk DOT nabble DOT com> <470FDEB8 DOT CAA832C2 AT dessent DOT net> <13187930 DOT post AT talk DOT nabble DOT com> <47116DD0 DOT 7010403 AT cygwin DOT com> <13196709 DOT post AT talk DOT nabble DOT com> <20071014153210 DOT GA11619 AT ednor DOT casa DOT cgf DOT cx> <13214221 DOT post AT talk DOT nabble DOT com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On 10/15/07, jxt <> wrote:
- - - - - cut - - - - -
> Now, as to the original question about shared folders being created by
> cygwin on vista, it appears that a solution is in hand, though I have not
> yet tested it in my envrionment. Indeed I had tried some googling, and
> even searching the archives of this list (using Nabble) before the post,
> but I guess I wasn't using to right search strings. I've had so many fights
> with vista, absolutely nothing surprises me when it behaves strangely.
- - - - cut - - - - - -

What was the solution?  CYGWIN=nontsec?  That's an odd solution
because I thought that would mess up how cygwin manages permissions.

From the User's Guide
"(no)ntsec - if set, use the NT security model to set UNIX-like
permissions on files and processes."

That implies that if this is NOT set that cygwin will NOT use the NT
security model to set UNIX-like peremissions.

So if you use CYGWIN=nontsec, you are losing some of the UNIX-ness of
your cygwin enviroment.

I still don't understand why Vista (which I do not have a copy of to
test with) would assume that a new folder being created needed to be
shared.

I haven't found a way to display the "shared" status of a folder from
a cygwin bash prompt.

ls and getfacl can give me permission and ownership information, but
not whether or not something is shared.

You can always use the Microsoft net command (see: net help share).

If I understand the problem, when you create a new directory inside a
cygwin shell, the directory is automatically shared (with the little
hand on the icon or whatever Vista uses to show that) and that this
happens whether or not the parent directory is shared.

Meaning, if you did
$ mkdir test1
$ mkdir test2
$ net share
You would see something like
Share name     Resource                       Remark
-------------------------------------------------------------------
ADMIN$         C:\WINDOWS                     Remote Admin
IPC$                                          Remote IPC
test1          C:\cygwin\home\jrd\test1
test2          C:\cygwin\home\jrd\test2

Is this correct?

-Jason

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

- Raw text -


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