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

2005-05-18 Thread George
On Wed, May 18, 2005 at 03:46:04PM -0700, Brian Dessent wrote: > Tom Rodman wrote: > > > wtouch() > > { > > local file=$1 > > CYGWIN=nontsec touch "$file" > > setacl -on "$(cygpath -aw "$file")" -ot file \ > > -actn setowner -ownr "n:Administrators;s:n" \ > > -actn setgroup -grp "n:

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

2005-05-18 Thread Brian Dessent
Tom Rodman wrote: > wtouch() > { > local file=$1 > CYGWIN=nontsec touch "$file" > setacl -on "$(cygpath -aw "$file")" -ot file \ > -actn setowner -ownr "n:Administrators;s:n" \ > -actn setgroup -grp "n:None;s:n" \ > -silent || echo $FUNCNAME:setacl failed > # see http://seta

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

2005-05-18 Thread Tom Rodman
On Wed 5/18/05 16:18 CDT Tom Rodman wrote: > > $ CYGWIN=nontsec touch foo > > Thanks Brian, that should do it. Here's a function I plan to use: wtouch() { local file=$1 CYGWIN=nontsec touch "$file" setacl -on "$(cygpath -aw "$file")" -ot file \ -actn setowner -ownr "n:Administrators;s:

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

2005-05-18 Thread Tom Rodman
> $ CYGWIN=nontsec touch foo Thanks Brian, that should do it. On Wed 5/18/05 13??:34 PDT Brian wrote: > [EMAIL PROTECTED] 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

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

2005-05-18 Thread Brian Dessent
[EMAIL PROTECTED] 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

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

2005-05-18 Thread cygwin
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 sim