* noacl functionality for MS-DOS destination paths?
@ 2008-12-19 4:53 Lawrence Mayer
2008-12-19 11:46 ` Corinna Vinschen
0 siblings, 1 reply; 4+ messages in thread
From: Lawrence Mayer @ 2008-12-19 4:53 UTC (permalink / raw)
To: cygwin
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/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: noacl functionality for MS-DOS destination paths?
2008-12-19 4:53 noacl functionality for MS-DOS destination paths? Lawrence Mayer
@ 2008-12-19 11:46 ` Corinna Vinschen
2008-12-19 22:47 ` Lawrence Mayer
0 siblings, 1 reply; 4+ messages in thread
From: Corinna Vinschen @ 2008-12-19 11:46 UTC (permalink / raw)
To: cygwin
On Dec 18 20:53, Lawrence Mayer wrote:
> 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?
Not yet. I'm reluctant to add a setting just for DOS paths. What we
could do is to handle incoming DOS paths always in dumb Windows mode
(noacl,posix=0). Given that they are not POSIX paths anyway, there's
probably not a lot of sense in treating them POSIXy.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat
--
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/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Re: noacl functionality for MS-DOS destination paths?
2008-12-19 11:46 ` Corinna Vinschen
@ 2008-12-19 22:47 ` Lawrence Mayer
2008-12-19 23:24 ` Larry Hall (Cygwin)
0 siblings, 1 reply; 4+ messages in thread
From: Lawrence Mayer @ 2008-12-19 22:47 UTC (permalink / raw)
To: cygwin
> On Dec 18 20:53, Lawrence Mayer wrote:
>> 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?
On 11:59, Corinna Vinschen wrote:
> Not yet. I'm reluctant to add a setting just for DOS paths. What we
> could do is to handle incoming DOS paths always in dumb Windows mode
> (noacl,posix=0). Given that they are not POSIX paths anyway, there's
> probably not a lot of sense in treating them POSIXy.
>
>
> Corinna
Thanks so much for replying Corinna. I completely agree that always
handling DOS paths with noacl,posix=0 makes sense and is a substantial
improvement.
I'm amazed how quickly you implemented this change into v1.7.0-36!
Thanks so much!
Would you like any help updating the Cygwin User's Guide to reflect this
change? If so:
(1) Should I submit a diff -u against
http://cygwin.com/1.7/cygwin-ug-net.html?
(2) Should I send the diff to cygwin-patches@cygwin.com?
Holiday Greetings,
Lawrence
--
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/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: noacl functionality for MS-DOS destination paths?
2008-12-19 22:47 ` Lawrence Mayer
@ 2008-12-19 23:24 ` Larry Hall (Cygwin)
0 siblings, 0 replies; 4+ messages in thread
From: Larry Hall (Cygwin) @ 2008-12-19 23:24 UTC (permalink / raw)
To: cygwin
Lawrence Mayer wrote:
>> On Dec 18 20:53, Lawrence Mayer wrote:
>>> 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?
>
>
> On 11:59, Corinna Vinschen wrote:
>> Not yet. I'm reluctant to add a setting just for DOS paths. What we
>> could do is to handle incoming DOS paths always in dumb Windows mode
>> (noacl,posix=0). Given that they are not POSIX paths anyway, there's
>> probably not a lot of sense in treating them POSIXy.
>>
>>
>> Corinna
>
>
> Thanks so much for replying Corinna. I completely agree that always
> handling DOS paths with noacl,posix=0 makes sense and is a substantial
> improvement.
>
> I'm amazed how quickly you implemented this change into v1.7.0-36!
> Thanks so much!
>
> Would you like any help updating the Cygwin User's Guide to reflect this
> change? If so:
>
> (1) Should I submit a diff -u against
> http://cygwin.com/1.7/cygwin-ug-net.html?
Actually, it would be
<http://cygwin.com/cgi-bin/cvsweb.cgi/src/winsup/doc/pathnames.sgml?rev=1.27&content-type=text/x-cvsweb-markup&cvsroot=src>
The UG is a collection of SGML files that get cobbled together by other
tools.
> (2) Should I send the diff to cygwin-patches@cygwin.com?
1 out of 2 ain't bad. ;-) Yes, that's the right place. Take a look at
other patch submissions there to get an idea of what is needed.
Thanks,
--
Larry Hall http://www.rfk.com
RFK Partners, Inc. (508) 893-9779 - RFK Office
216 Dalton Rd. (508) 893-9889 - FAX
Holliston, MA 01746
_____________________________________________________________________
A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?
--
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/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-12-19 23:24 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-19 4:53 noacl functionality for MS-DOS destination paths? Lawrence Mayer
2008-12-19 11:46 ` Corinna Vinschen
2008-12-19 22:47 ` Lawrence Mayer
2008-12-19 23:24 ` Larry Hall (Cygwin)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).