delorie.com/archives/browse.cgi | search |
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 |
Message-Id: | <200505182118.j4ILIx7q012492@tigris.pounder.sol.net> |
From: | cygwin AT trodman DOT com (Tom Rodman) |
To: | cygwin AT cygwin DOT com |
Subject: | Re: create new file from bash: with DACL, owner, & group as windows would |
In-reply-to: | <428BA6E2.70B95230@dessent.net> |
References: | <200505182013 DOT j4IKDBcF012257 AT tigris DOT pounder DOT sol DOT net> <428BA6E2 DOT 70B95230 AT dessent DOT net> |
Date: | Wed, 18 May 2005 16:18:59 -0500 |
X-IsSubscribed: | yes |
> $ CYGWIN=nontsec touch foo Thanks Brian, that should do it. On Wed 5/18/05 13??:34 PDT Brian wrote: > cygwin AT trodman DOT 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 cleaner, works as well as my kloosh - still have to fix owner and group; good enough for me :-> -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |