Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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: <200505182013.j4IKDBcF012257@tigris.pounder.sol.net> To: cygwin AT cygwin DOT com From: cygwin AT trodman DOT com Subject: create new file from bash: with DACL, owner, & group as windows would Date: Wed, 18 May 2005 15:13:11 -0500 X-IsSubscribed: yes 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' The DACL is good (often purely inherited), but the owner and group take on the sensible bash values - which I do not want. Outside of bash, at a simple DOS prompt, the new owner is the group administrators- if your in that group. I tried (for example): $ env -i /drv/c/WINNT/system32/cmd /c 'echo >foo' and I get the same results - ie the owner and group still have the bash values. Admitted, this is a trivial problem- I can use chown to fix the owner and group. Thanks as always for cygwin - I use it day in day out. -- regards, Tom Rodman -- 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/