delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/12/07/04:51:36

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Tue, 7 Dec 2010 10:51:10 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Permissions on Windows 2008
Message-ID: <20101207095110.GH25347@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <loom DOT 20101207T055651-95 AT post DOT gmane DOT org>
MIME-Version: 1.0
In-Reply-To: <loom.20101207T055651-95@post.gmane.org>
User-Agent: Mutt/1.5.20 (2009-06-14)
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 Dec  7 05:09, 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.

No, it's an existing account.  After all, if it wouldn't exist, how
would Windows be able to resolve the SID into a name?
If the receiving account on the target machine is not a domain account,
then "None" is its default Windows primary group, the local group with
RID 513.

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

As Jeremy already noted, Cygwin emulates POSIX permissions.  The default
POSIX permissions are 0644.  Well, actually it depends on your umask and
your usage of the scp -p option, but let's assume the default settings
are used.  This leads to the following ACL:

  ServerName\User    rw-
  ServerName\None    r--
  Everyone           r--

Note that Windows Explorer only erroneously treats such files as
"shared" if they are in your own user folder.  If you scp the files
into some other folder (like, say, /home/user within your Cygwin folder
hirarchy, this won't occur anymore.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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