X-Spam-Check-By: sourceware.org From: "Dave Korn" To: References: <45C392E1 DOT 2040307 AT jhmg DOT net> Subject: RE: File mode 0700 for windows-created files? Date: Sun, 4 Feb 2007 16:51:45 -0000 Message-ID: <01b701c7487c$c0d3a970$2e08a8c0@CAM.ARTIMI.COM> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <45C392E1.2040307@jhmg.net> 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 02 February 2007 19:37, Jim Garrison wrote: > Every file created by a non-Cygwin app appears in Cygwin > with mode 0700. I've read the documents pertaining to > ntfs permissions in Cygwin but don't see a way to configure > things so that Cygwin sees them as a more reasonable 0755 > or 0644 (for non-executables). > I have a valid /etc/passwd and /etc/group (generated by > mkpasswd and mkgroup). > > Is it possible to configure Cygwin so it sees > non-Cygwin-created files as 0644 or 0755? Cygwin represents the perms as whatever the posix equivalent is of the perms that the win32 app that created the file set, so is it possible the files are genuinely being created with perms only for your user? Bear in mind that permissions can be inherited on a newly created file from the parent directory containing the new file... As a test, I created an empty text file through the explorer context menu (New->Text Document). In /tmp, it showed up with 777 perms automatically. However, in a directory with 755 perms, it showed up with 755 perms. Are you testing this with different win32 apps and creating files in different directories and seeing the same result everywhere? If you create a file in /tmp using windows explorer like I did, how does it show up in the output of 1) "ls -la", 2) "getfacl", 3) "cacls" ? cheers, DaveK -- Can't think of a witty .sigline today.... -- 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/