Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-Id: <200505182118.j4ILIx7q012492@tigris.pounder.sol.net>
From: cygwin@trodman.com (Tom Rodman)
To: cygwin@cygwin.com
Subject: Re: create new file from bash: with DACL, owner, & group as windows would
In-reply-to: <428BA6E2.70B95230@dessent.net>
References: <200505182013.j4IKDBcF012257@tigris.pounder.sol.net> <428BA6E2.70B95230@dessent.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@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

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/

