delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/02/04/11:52:06

X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
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
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
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 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019