delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/05/18/16:34:30

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: <428BA6E2.70B95230@dessent.net>
Date: Wed, 18 May 2005 13:34:42 -0700
From: Brian Dessent <brian AT dessent DOT net>
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: create new file from bash: with DACL, owner, & group as windows would
References: <200505182013 DOT j4IKDBcF012257 AT tigris DOT pounder DOT sol DOT net>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com

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

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019