delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/12/18/23:54:03

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,J_CHICKENPOX_45
X-Spam-Check-By: sourceware.org
X-Authority-Analysis: v=1.0 c=1 a=uRE_v8HaT6oA:10 a=1I-UKPZ90rwA:10 a=w_pzkKWiAAAA:8 a=REpicdOsePVnIippfCQA:9 a=lnDkkSTGKAB62eoqE54A:7 a=QTWdbm81CVBZlzeMd8lykiyQJwkA:4 a=birkmQ2h4YEA:10
X-CM-Score: 0.00
Message-ID: <494B28B9.1070902@i12.com>
Date: Thu, 18 Dec 2008 20:53:13 -0800
From: Lawrence Mayer <lawmay3 AT i12 DOT com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1b3pre) Gecko/20081204 Thunderbird/3.0b1
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: noacl functionality for MS-DOS destination paths?
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

Is there any way to get noacl functionality when using MS-DOS 
destination paths?

My etc/fstab file (below) applies noacl for UNIX destination paths e.g.

C:\cygwin\bin\mkdir.exe /c/foo

creates directory C:\foo with NTFS default permissions inherited from 
parent directory C:\ (the same as DOS mkdir C:\foo would do).

But an MS-DOS destination path, e.g.

C:\cygwin\bin\mkdir.exe C:\foo

causes Cygwin to ignore noacl in etc/fstab and create C:\foo with 
POSIX-like permissions (non-NTFS default and not inherited from parent 
directory C:\).

According to http://cygwin.com/1.7/cygwin-ug-net.html#mount-table

"Otherwise, the handling of MS-DOS filenames bypasses the mount table"

But if Cygwin 1.7 bypasses etc/fstab for MS-DOS filenames and no longer 
supports the nontsec option, I'm stuck.

When using MS-DOS destination paths in Cygwin 1.7, is there any way to 
get noacl functionality - i.e. where Cygwin creates objects with NTFS 
default permissions inherited from their parent directory rather than 
POSIX-like permissions?

If not, are there any plans to add such functionality to Cygwin 1.7?

Destination paths can be converted from MS_DOS to Unix (e.g. with 
cygpath) in order to prevent Cygwin from bypassing etc/fstab and hence 
noacl, but is there a solution which doesn't require path conversion?

Greetings,
Lawrence


Details: Cygwin v1.7.0-35 on NTFS drive C: running Windows Server 2003 
sp2 32-bit

etc/fstab:

none / cygdrive text,noacl,posix=0,user 0 0
C:/cygwin/bin /usr/bin ntfs text,noacl,posix=0 0 0
C:/cygwin/lib /usr/lib ntfs text,noacl,posix=0 0 0
C:/cygwin / ntfs text,noacl,posix=0 0 0

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