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 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: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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