delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/12/07/00:25:21

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.3 required=5.0 tests=AWL,BAYES_50
X-Spam-Check-By: sourceware.org
Message-ID: <4CFDC52D.4070909@bopp.net>
Date: Mon, 06 Dec 2010 23:25:01 -0600
From: Jeremy Bopp <jeremy AT bopp DOT net>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Permissions on Windows 2008
References: <loom DOT 20101207T055651-95 AT post DOT gmane DOT org>
In-Reply-To: <loom.20101207T055651-95@post.gmane.org>
X-IsSubscribed: yes
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

On 12/06/2010 11:09 PM, Bryan Slatner wrote:
> I've just installed Cygwin on a Windows 2008 Standard server with SP2.
> 
> I'm noticing two strange behaviors with files that I upload via SFTP (or 
> SCP, I'm not actually sure which protocol WinSCP uses by default).
> 
> First, the ACL list on the uploaded files contains an entry for 
> "ServerName\None", which is a non-existent account as best I can tell.
> 
> Second, it "shares" the files and directories using the Windows 2008
> file sharing feature that allows you to share files with other users
> on the same machine. It shares the file with "Everyone" and 
> "ServerName\None".
> 
> Both of these are undesirable behaviors. Ideally, I would like files 
> uploaded with SFTP to have the same permissions they'd have as if I
> had just created them in place. The sharing thing is particularly 
> annoying because if I start moving files around, Windows frequently 
> pops up a warning like "Warning: These files are shared. If you move
> them, they will no longer be accessible."
> 
> Any tips on how to prevent these behaviors would be welcome.

By default Cygwin tries to emulate POSIX file permissions:

http://cygwin.com/cygwin-ug-net/ntsec.html

You can disable this by modifying your /etc/fstab file and adding the
appropriate options to cause the target locations for your files to have
the necessary options:

http://cygwin.com/cygwin-ug-net/using.html#mount-table

Specifically, you may need to modify the settings for the cygdrive
mountpoint:

http://cygwin.com/cygwin-ug-net/using.html#cygdrive

-Jeremy

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