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 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: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 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