delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/04/19/15:54:41

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Reply-To: Cygwin List <cygwin AT cygwin DOT com>
Message-Id: <6.2.1.2.0.20050419154629.08697008@pop.prospeed.net>
Date: Tue, 19 Apr 2005 15:53:04 -0400
To: Pekka Niiranen <pekka DOT niiranen AT wlanmail DOT com>, cygwin AT cygwin DOT com
From: Larry Hall <lh-no-personal-replies-please AT cygwin DOT com>
Subject: Re: File permissions questions
In-Reply-To: <d43mln$idp$2@sea.gmane.org>
References: <d43mln$idp$2 AT sea DOT gmane DOT org>
Mime-Version: 1.0

At 03:42 PM 4/19/2005, you wrote:
>Hi,
>
>I am running the latest Cygwin on Windows 2000
>and have the following problems.
>
>I start windows program from Bash shell script and
>the windows program creates a file.
>The permissions of the created file become "d---------"
>after which I cannot access it from Bash script itself.
>I have not managed to find out what happens here (I have 'ntsec' set)
>but is there a way to make Cygwin to use only W2K's
>file permissions and ignore the unix type of
>access rights drwxrwxrwx?


No, at least not as you have stated it.  Please read and follow the 
problem reporting guidelines at <http://cygwin.com/problems.html> if you 
need to follow-up on this issue with the list.


>Another problem: if I use explorer to create file to directory
>it shows in Bash as:
>
>-rwxrwxrwx   1 Administrators None 0 Apr 19 22:33 New Text Document.txt*


A "directory"???


>However, I am logged locally in as "pekka" into windows and command "id"
>at Bash shows
>
>uid=1000(pekka) gid=544(Administrators)\ groups=0(root),513(None),544(Administrators),545(Users)
>
>These 2 lines are from /etc/passwd:
>
>Administrator:unused_by_nt/2000/xp:500:544:(deleted):/home/Administrator:\
>/bin/bash
>pekka:unused_by_nt/2000/xp:1000:544:(deleted):/cygdrive/c/home/cygwin:/\
>bin/bash
>
>Why is the new file not created as owner 'pekka' and
>group 'Administrators'?

Check out the documentation 
<http://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-files>.  There's allot 
of answers to allot of questions in here (not just your current one).  It's
worth your time to read through it once (or again if you've done so before).



--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     


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