delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/08/26/06:38:54

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>,
<http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
From: Andrzej DOT Pruszynski AT eur DOT autodesk DOT com
Message-ID: <C2AA61E5CAA7D211832F0008C7A4138E2A568C@eurmsgneu01.eur.autodesk.com>
To: cygwin AT sourceware DOT cygnus DOT com
Subject: B20: Open file on NTFS sets security to unexisting domain/user
Date: Thu, 26 Aug 1999 12:34:34 +0200
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)

Hi cygwin group,

I applied "19990819" snapshot on my "GNU bash, version 2.02.1(2)-release
(i586-pc-cygwin32)", installed on English NT4.0, SP3.

1/ ==============
How to reproduce the "open file on NTFS" bug:

1. Start bash
2. Change drive to NTFS drive ("cd D:" in my case)
3. Run "touch test.ap"

Now, with Explorer "Properties" of file, you will find that file permissions
are set to three users. In my case it is:
. Everyone
. LEM\Administrators
. NEUCHATEL\andrzejp
and all of them have "Special Access (RWDPO)"

On test1.ap file created with MKSToolkit "touch" command, only "Everyone" is
set with "full" access.

Mind that I'm logged as AUTODESK\andrzejp (NEUCHATEL\andrzejp user was
deleted some time ago).

2/ ==============
Within bash, "ls -l" reports:
-rw-rw-rw-   1 andrzejp Administ        0 Aug 26 09:56 test.ap
-rwxrwxrwx   1 andrzejp Administ        0 Aug 26 09:57 test1.ap

test1.ap was created by touch command from MKS Toolkit. Then "ls -l" from
MKS Toolkit reports:
-rwxrwxrwa   1 NEUCHATEL\andrzejp Administrators                0 Aug 26
09:56 test.ap
-rwxrwxrwa   1 Administrators  AUTODESK\Domain+Users       0 Aug 26 09:57
test1.ap

3/ ==============
So the first problem is that files have unnecessary users/permissions set,
the second that removed or non-active users get permission on created files,
but not the active user.

My current problem is that it is impossible to use rsync program (2.3.1) I
compiled in Cygwin box, as rename will fail for permissions reason.

Andrzej Pruszynski
Sw Lead
Autodesk Sarl, ESC, Neuchatel

> This e-mail transmission is intended only for the use of the individual or
> entity named above and may contain information that is confidential,
> privileged and exempt from disclosure under applicable law. If you are not
> the intended recipient, you are hereby notified that any disclosure,
> copying, distribution, or use of any of the information contained in this
> transmission is strictly PROHIBITED. If you have received this
> transmission in error, please immediately notify me by e-mail at the above
> address. Thank you.
> 
> 

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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