This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: create new file from bash: with DACL, owner, & group as windows would


cygwin@trodman.com wrote:

> I like and depend on NTSEC, but sometimes I want pure windows behavior.
> 
> How can I create a new file from the bash prompt without umask being
> honored- what I want is a script to create a new empty file,
> so the DACL, owner & group will be exactly what a user would
> get by running the below from a simple DOS prompt:
> 
>   echo.>foo
> 
> The closest I've come from the bash prompt is:
> 
>   $ cmd /c 'echo.>foo'

I think you're overcomplicating it...How about:

$ CYGWIN=nontsec touch foo

Brian

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]