public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: chmod and ntsec
@ 2001-03-30  7:05 Heimo Ponnath
  2001-03-30  8:18 ` Batch files Matt Minnis
  2001-03-30  9:02 ` chmod and ntsec Corinna Vinschen
  0 siblings, 2 replies; 22+ messages in thread
From: Heimo Ponnath @ 2001-03-30  7:05 UTC (permalink / raw)
  To: cygwin

Thank you Larry,

At 01:50 30.03.01, you wrote:
>Missed one.  Try the user's guide.
>
> http://www.cygwin.com/cygwin-ug-net/using-cygwinenv.html

I did not miss this: But I dont know WHERE and HOW to set these environment 
variables. I work with NTFS-Partitions and with FAT-Partintions. Is it 
better to select >>ntea<< (how big will the mentioned additional files be 
and will they be built once or will they become bigger every time I use 
some features?) or is it better to to select >>ntsec<< (which will not work 
with the FAT-partitions). What happens, when I use both?
Also, there is a file >>ntsec.sgml<< mentioned. Where can I find this file?

Heimo Ponnath

>At 09:03 AM 3/29/2001, Heimo Ponnath wrote:
> >Hello,
> >
> >i am new in this list and in CygWin. I work with Windows NT 4.0 and the 
> newsest version of CygWin (1.1.18) and - yes, I searched the 
> list-archives and read the FAQs. But there are still some facts left 
> which I dont understand.
> >
> >One of the problems is, that chmod does not work. In the list and in the 
> FAQ there is an Environment variable mentioned, which should be set: ntsec.
> >Could you please tell me, where and how and to which value I can/should 
> set this ntsec?
> >
> >I have some more questions - but I hope, you can help me with this first 
> one.



--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Batch files
  2001-03-30  7:05 chmod and ntsec Heimo Ponnath
@ 2001-03-30  8:18 ` Matt Minnis
  2001-03-30  9:14   ` Larry Hall (RFK Partners, Inc)
  2001-03-30  9:02 ` chmod and ntsec Corinna Vinschen
  1 sibling, 1 reply; 22+ messages in thread
From: Matt Minnis @ 2001-03-30  8:18 UTC (permalink / raw)
  To: cygwin

Is there a way to get Cygwin to recognize that *.bat files are executeable as:
fred.bat & fred (without the .bat)?

Thanks,

Matt Minnis


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: chmod and ntsec
  2001-03-30  7:05 chmod and ntsec Heimo Ponnath
  2001-03-30  8:18 ` Batch files Matt Minnis
@ 2001-03-30  9:02 ` Corinna Vinschen
  2001-03-30 15:36   ` Heimo Ponnath
  1 sibling, 1 reply; 22+ messages in thread
From: Corinna Vinschen @ 2001-03-30  9:02 UTC (permalink / raw)
  To: cygwin

On Fri, Mar 30, 2001 at 05:05:02PM +0100, Heimo Ponnath wrote:
> Thank you Larry,
> 
> At 01:50 30.03.01, you wrote:
> >Missed one.  Try the user's guide.
> >
> > http://www.cygwin.com/cygwin-ug-net/using-cygwinenv.html
> 
> I did not miss this: But I dont know WHERE and HOW to set these environment 
> variables. I work with NTFS-Partitions and with FAT-Partintions. Is it 

Where: Either in the global environment settings

	"Start" -> "Settings" -> "Control Panel" -> "System" -> ...

or in the startup batch file

	set CYGWIN=binmode notty ntsec

> better to select >>ntea<< (how big will the mentioned additional files be 
> and will they be built once or will they become bigger every time I use 
> some features?) or is it better to to select >>ntsec<< (which will not work 
> with the FAT-partitions). What happens, when I use both?

You will use ntea on FAT and ntsec on NTFS then. It's a personal
choice. ntea is fake, ntsec needs some understanding of NT security.

> Also, there is a file >>ntsec.sgml<< mentioned. Where can I find this file?

In the online user's guide:

http://cygwin.com/cygwin-ug-net/ntsec.html

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Batch files
  2001-03-30  8:18 ` Batch files Matt Minnis
@ 2001-03-30  9:14   ` Larry Hall (RFK Partners, Inc)
  2001-03-30  9:20     ` Matt Minnis
  2001-03-30 11:47     ` Earnie Boyd
  0 siblings, 2 replies; 22+ messages in thread
From: Larry Hall (RFK Partners, Inc) @ 2001-03-30  9:14 UTC (permalink / raw)
  To: Matt Minnis, cygwin

At 11:17 AM 3/30/2001, Matt Minnis wrote:


>Is there a way to get Cygwin to recognize that *.bat files are executeable as:
>fred.bat & fred (without the .bat)?


Anything's possible.  foo.bat works for me though.



Larry Hall                              lhall@rfk.com
RFK Partners, Inc.                      http://www.rfk.com
118 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Batch files
  2001-03-30  9:14   ` Larry Hall (RFK Partners, Inc)
@ 2001-03-30  9:20     ` Matt Minnis
  2001-03-30  9:36       ` Larry Hall (RFK Partners, Inc)
  2001-03-30 11:47     ` Earnie Boyd
  1 sibling, 1 reply; 22+ messages in thread
From: Matt Minnis @ 2001-03-30  9:20 UTC (permalink / raw)
  To: Larry Hall (RFK Partners, Inc), cygwin

Yes, fred.bat or foo.bat do work now, but so should foo and fred.

Is there a way to enable this behavior?

Thanks,

Matt

At 11:14 AM 3/30/2001, Larry Hall (RFK Partners, Inc) wrote:
>At 11:17 AM 3/30/2001, Matt Minnis wrote:
>
>
> >Is there a way to get Cygwin to recognize that *.bat files are 
> executeable as:
> >fred.bat & fred (without the .bat)?
>
>
>Anything's possible.  foo.bat works for me though.
>
>
>
>Larry Hall                              lhall@rfk.com
>RFK Partners, Inc.                      http://www.rfk.com
>118 Washington Street                   (508) 893-9779 - RFK Office
>Holliston, MA 01746                     (508) 893-9889 - FAX


The generation of random numbers is too important to be left to chance.
=========================================================
Preferred Resources          (314) 567-7600 phone
701 Emerson rd.              (314) 993-6699 fax
Suite 475                      mminnis@prefres.com
St. Louis, MO
63141
=========================================================


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Batch files
  2001-03-30  9:20     ` Matt Minnis
@ 2001-03-30  9:36       ` Larry Hall (RFK Partners, Inc)
  0 siblings, 0 replies; 22+ messages in thread
From: Larry Hall (RFK Partners, Inc) @ 2001-03-30  9:36 UTC (permalink / raw)
  To: Matt Minnis, cygwin

Not without a source change AFAIK.

Larry


At 12:20 PM 3/30/2001, Matt Minnis wrote:
>Yes, fred.bat or foo.bat do work now, but so should foo and fred.
>
>Is there a way to enable this behavior?
>
>Thanks,
>
>Matt
>
>At 11:14 AM 3/30/2001, Larry Hall (RFK Partners, Inc) wrote:
>>At 11:17 AM 3/30/2001, Matt Minnis wrote:
>>
>>
>> >Is there a way to get Cygwin to recognize that *.bat files are executeable as:
>> >fred.bat & fred (without the .bat)?
>>
>>
>>Anything's possible.  foo.bat works for me though.
>>
>>
>>
>>Larry Hall                              lhall@rfk.com
>>RFK Partners, Inc.                      http://www.rfk.com
>>118 Washington Street                   (508) 893-9779 - RFK Office
>>Holliston, MA 01746                     (508) 893-9889 - FAX
>
>
>The generation of random numbers is too important to be left to chance.
>=========================================================
>Preferred Resources          (314) 567-7600 phone
>701 Emerson rd.              (314) 993-6699 fax
>Suite 475                      mminnis@prefres.com
>St. Louis, MO
>63141
>=========================================================


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Batch files
  2001-03-30  9:14   ` Larry Hall (RFK Partners, Inc)
  2001-03-30  9:20     ` Matt Minnis
@ 2001-03-30 11:47     ` Earnie Boyd
  2001-03-30 12:09       ` Andrew Markebo
  1 sibling, 1 reply; 22+ messages in thread
From: Earnie Boyd @ 2001-03-30 11:47 UTC (permalink / raw)
  To: Larry Hall (RFK Partners, Inc); +Cc: Matt Minnis, cygwin

"Larry Hall (RFK Partners, Inc)" wrote:
> 
> At 11:17 AM 3/30/2001, Matt Minnis wrote:
> 
> >Is there a way to get Cygwin to recognize that *.bat files are executeable as:
> >fred.bat & fred (without the .bat)?
> 
> Anything's possible.  foo.bat works for me though.
> 

Hmm...  This isn't a FAQ yet?!

I've explained many times how to do this. 

1) Create a noop program named #!.exe
2) Install the it in C:/cygwin/bin and C:/windows/system32/
3) Add `#! c:/windows/system32/cmd /c' to the .bat file as the first
line.

Earnie.

P.S.:

cat << EOD > noop.c
int main (void) {return 0;}
EOD
gcc -o \#\!.exe noop.c

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Batch files
  2001-03-30 11:47     ` Earnie Boyd
@ 2001-03-30 12:09       ` Andrew Markebo
  2001-03-30 12:21         ` Larry Hall (RFK Partners, Inc)
  0 siblings, 1 reply; 22+ messages in thread
From: Andrew Markebo @ 2001-03-30 12:09 UTC (permalink / raw)
  To: Earnie Boyd

Will cmd still grokk the batch-file if you have a #! on the first
line??

        /Andy

/ Earnie Boyd <earnie_boyd@yahoo.com> wrote:
| "Larry Hall (RFK Partners, Inc)" wrote:
| > 
| > At 11:17 AM 3/30/2001, Matt Minnis wrote:
| > 
| > >Is there a way to get Cygwin to recognize that *.bat files are executeable as:
| > >fred.bat & fred (without the .bat)?
| > 
| > Anything's possible.  foo.bat works for me though.
| > 
| 
| Hmm...  This isn't a FAQ yet?!
| 
| I've explained many times how to do this. 
| 
| 1) Create a noop program named #!.exe
| 2) Install the it in C:/cygwin/bin and C:/windows/system32/
| 3) Add `#! c:/windows/system32/cmd /c' to the .bat file as the first
| line.
| 
| Earnie.
| 
| P.S.:
| 
| cat << EOD > noop.c
| int main (void) {return 0;}
| EOD
| gcc -o \#\!.exe noop.c
| 
| _________________________________________________________
| Do You Yahoo!?
| Get your free @yahoo.com address at http://mail.yahoo.com
| 
| 
| --
| Want to unsubscribe from this list?
| Check out: http://cygwin.com/ml/#unsubscribe-simple

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Batch files
  2001-03-30 12:09       ` Andrew Markebo
@ 2001-03-30 12:21         ` Larry Hall (RFK Partners, Inc)
  2001-03-30 14:46           ` Jan Vicherek
  0 siblings, 1 reply; 22+ messages in thread
From: Larry Hall (RFK Partners, Inc) @ 2001-03-30 12:21 UTC (permalink / raw)
  To: Andrew Markebo, Earnie Boyd

Been there, done that!  I'm having quite a bit of deja-vu relative to this
particular solution.

Earnie suggested making an executable called #!.exe  If this is done, then
you can expect the batch file to grok it if its in the path.

Larry Hall                              lhall@rfk.com
RFK Partners, Inc.                      http://www.rfk.com
118 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX



At 03:09 PM 3/30/2001, Andrew Markebo wrote:
>Will cmd still grokk the batch-file if you have a #! on the first
>line??
>
>         /Andy
>
>/ Earnie Boyd <earnie_boyd@yahoo.com> wrote:
>| "Larry Hall (RFK Partners, Inc)" wrote:
>| > 
>| > At 11:17 AM 3/30/2001, Matt Minnis wrote:
>| > 
>| > >Is there a way to get Cygwin to recognize that *.bat files are executeable as:
>| > >fred.bat & fred (without the .bat)?
>| > 
>| > Anything's possible.  foo.bat works for me though.
>| > 
>| 
>| Hmm...  This isn't a FAQ yet?!
>| 
>| I've explained many times how to do this. 
>| 
>| 1) Create a noop program named #!.exe
>| 2) Install the it in C:/cygwin/bin and C:/windows/system32/
>| 3) Add `#! c:/windows/system32/cmd /c' to the .bat file as the first
>| line.
>| 
>| Earnie.
>| 
>| P.S.:
>| 
>| cat << EOD > noop.c
>| int main (void) {return 0;}
>| EOD
>| gcc -o \#\!.exe noop.c
>| 
>| _________________________________________________________
>| Do You Yahoo!?
>| Get your free @yahoo.com address at http://mail.yahoo.com
>| 
>| 
>| --
>| Want to unsubscribe from this list?
>| Check out: http://cygwin.com/ml/#unsubscribe-simple
>
>--
>Want to unsubscribe from this list?
>Check out: http://cygwin.com/ml/#unsubscribe-simple


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Batch files
  2001-03-30 12:21         ` Larry Hall (RFK Partners, Inc)
@ 2001-03-30 14:46           ` Jan Vicherek
  2001-04-02  4:56             ` Earnie Boyd
  0 siblings, 1 reply; 22+ messages in thread
From: Jan Vicherek @ 2001-03-30 14:46 UTC (permalink / raw)
  To: Larry Hall (RFK Partners, Inc); +Cc: Andrew Markebo, Earnie Boyd

  Hmm, executing "foo.bat" works even without performing the three steps
below, but executing "foo" (where "foo.bat" is in the path), doesn't work
even if "#!.exe" is present ! :

administrator@BM80258908 /c
$ echo $PATH
/c/temp:.:/bin:/usr/bin:/sbin:/usr/sbin:/bin:/usr/bin:/sbin:/usr/sbin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/bin:/bin:/usr/bin:/cygdrive/c/WINNT/system32:/cygdrive/c/WINNT:/cygdrive/c/vim/vim57

administrator@BM80258908 /c
$ foo.bat

c:\>echo test works ! 
test works !

administrator@BM80258908 /c
$ foo
bash: foo: command not found

 I presume that in order to make the three steps of the effect that
executing just "foo" will work, there is a prerequisite, right ?
Earnie, what would this prerequisite be ?

    thanx

	     Jan


> >/ Earnie Boyd <earnie_boyd@yahoo.com> wrote:
> >| "Larry Hall (RFK Partners, Inc)" wrote:
> >| > 
> >| > At 11:17 AM 3/30/2001, Matt Minnis wrote:
> >| > 
> >| > >Is there a way to get Cygwin to recognize that *.bat files are executeable as:
> >| > >fred.bat & fred (without the .bat)?
> >| > 
> >| > Anything's possible.  foo.bat works for me though.
> >| > 
> >| 
> >| Hmm...  This isn't a FAQ yet?!
> >| 
> >| I've explained many times how to do this. 
> >| 
> >| 1) Create a noop program named #!.exe
> >| 2) Install the it in C:/cygwin/bin and C:/windows/system32/
> >| 3) Add `#! c:/windows/system32/cmd /c' to the .bat file as the first
> >| line.
> >| 
> >| Earnie.
> >| 
> >| P.S.:
> >| 
> >| cat << EOD > noop.c
> >| int main (void) {return 0;}
> >| EOD
> >| gcc -o \#\!.exe noop.c


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: chmod and ntsec
  2001-03-30  9:02 ` chmod and ntsec Corinna Vinschen
@ 2001-03-30 15:36   ` Heimo Ponnath
  0 siblings, 0 replies; 22+ messages in thread
From: Heimo Ponnath @ 2001-03-30 15:36 UTC (permalink / raw)
  To: Corinna Vinschen

Thank you Corinna,

this will help me

Heimo


At 18:01 30.03.01, you wrote:
>or in the startup batch file
>
>         set CYGWIN=binmode notty ntsec


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Batch files
  2001-03-30 14:46           ` Jan Vicherek
@ 2001-04-02  4:56             ` Earnie Boyd
  0 siblings, 0 replies; 22+ messages in thread
From: Earnie Boyd @ 2001-04-02  4:56 UTC (permalink / raw)
  To: Jan Vicherek; +Cc: Larry Hall (RFK Partners, Inc), Andrew Markebo, Earnie Boyd

Jan Vicherek wrote:
> 
>   Hmm, executing "foo.bat" works even without performing the three steps
> below, but executing "foo" (where "foo.bat" is in the path), doesn't work
> even if "#!.exe" is present ! :
> 
> administrator@BM80258908 /c
> $ echo $PATH
> /c/temp:.:/bin:/usr/bin:/sbin:/usr/sbin:/bin:/usr/bin:/sbin:/usr/sbin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/bin:/bin:/usr/bin:/cygdrive/c/WINNT/system32:/cygdrive/c/WINNT:/cygdrive/c/vim/vim57
> 
> administrator@BM80258908 /c
> $ foo.bat
> 
> c:\>echo test works !
> test works !
> 
> administrator@BM80258908 /c
> $ foo
> bash: foo: command not found
> 
>  I presume that in order to make the three steps of the effect that
> executing just "foo" will work, there is a prerequisite, right ?
> Earnie, what would this prerequisite be ?
> 

The prerequisite is that you have to live by the Win32 rules.  The only
way for the #! suggestion to work is to name the file foo.bat and
execute foo.bat.  All of this quibble over not specifying all of the
filename is just nonsense.  Where in UNIX land do you get filename
extension recognition?  IMO, the executing foo.exe by the name foo is
bogus too as well as the .exe that is put there but if I want to play
with cmd.exe/command.com they have to be.

I don't see that executing foo if the file is named foo.bat exists will
easily work.  It already confuses autoconfiguration with foo.exe
stat'ing as foo.  If we change the routines to find foo.bat as foo then
when we have foo.exe, foo.bat and foo/ in the same directory what does
stat() stat?

My recommendation is to live with it.  Needing to type foo.bat when you
want to execute foo.bat is here to stay.  If you want to be lazy use the
tab-completion routines of the readline library.

Earnie.

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: chmod and ntsec
  2001-03-29 11:55 Heimo Ponnath
  2001-03-29 17:53 ` Christopher Faylor
@ 2001-03-29 18:11 ` Larry Hall (RFK Partners, Inc)
  1 sibling, 0 replies; 22+ messages in thread
From: Larry Hall (RFK Partners, Inc) @ 2001-03-29 18:11 UTC (permalink / raw)
  To: Heimo Ponnath, cygwin

At 09:03 AM 3/29/2001, Heimo Ponnath wrote:
>Hello,
>
>i am new in this list and in CygWin. I work with Windows NT 4.0 and the newsest version of CygWin (1.1.18) and - yes, I searched the list-archives and read the FAQs. But there are still some facts left which I dont understand.
>
>One of the problems is, that chmod does not work. In the list and in the FAQ there is an Environment variable mentioned, which should be set: ntsec.
>Could you please tell me, where and how and to which value I can/should set this ntsec?
>
>I have some more questions - but I hope, you can help me with this first one.



Missed one.  Try the user's guide.

http://www.cygwin.com/cygwin-ug-net/using-cygwinenv.html



Larry Hall                              lhall@rfk.com
RFK Partners, Inc.                      http://www.rfk.com
118 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: chmod and ntsec
  2001-03-29 11:55 Heimo Ponnath
@ 2001-03-29 17:53 ` Christopher Faylor
  2001-03-29 18:11 ` Larry Hall (RFK Partners, Inc)
  1 sibling, 0 replies; 22+ messages in thread
From: Christopher Faylor @ 2001-03-29 17:53 UTC (permalink / raw)
  To: cygwin

On Thu, Mar 29, 2001 at 03:03:17PM +0100, Heimo Ponnath wrote:
>i am new in this list and in CygWin. I work with Windows NT 4.0 and the 
>newsest version of CygWin (1.1.18) and - yes, I searched the list-archives 
>and read the FAQs. But there are still some facts left which I dont understand.
>
>One of the problems is, that chmod does not work. In the list and in the 
>FAQ there is an Environment variable mentioned, which should be set: ntsec.
>Could you please tell me, where and how and to which value I can/should set 
>this ntsec?
>
>I have some more questions - but I hope, you can help me with this first one.

You should check out the Cygwin documentation:

http://cygwin.com/cygwin-ug-net/using-cygwinenv.html

cgf

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 22+ messages in thread

* chmod and ntsec
@ 2001-03-29 11:55 Heimo Ponnath
  2001-03-29 17:53 ` Christopher Faylor
  2001-03-29 18:11 ` Larry Hall (RFK Partners, Inc)
  0 siblings, 2 replies; 22+ messages in thread
From: Heimo Ponnath @ 2001-03-29 11:55 UTC (permalink / raw)
  To: cygwin

Hello,

i am new in this list and in CygWin. I work with Windows NT 4.0 and the 
newsest version of CygWin (1.1.18) and - yes, I searched the list-archives 
and read the FAQs. But there are still some facts left which I dont understand.

One of the problems is, that chmod does not work. In the list and in the 
FAQ there is an Environment variable mentioned, which should be set: ntsec.
Could you please tell me, where and how and to which value I can/should set 
this ntsec?

I have some more questions - but I hope, you can help me with this first one.

Heimo Ponnath


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: chmod and ntsec
  2001-02-13  7:42       ` Earnie Boyd
@ 2001-02-13  9:26         ` Larry Hall (RFK Partners, Inc)
  0 siblings, 0 replies; 22+ messages in thread
From: Larry Hall (RFK Partners, Inc) @ 2001-02-13  9:26 UTC (permalink / raw)
  To: cygwin, Malcolm Boekhoff

At 10:42 AM 2/13/2001, Earnie Boyd wrote:
>Malcolm Boekhoff wrote:
> > 
> > So is the definitive, expert answer to use "ntsec" or "ntsec ntea"?
> > 
>
>The ntsec flag overrides the ntea flag IIRC.  There is no reason to use
>the ntea flag if you use the ntsec flag.  The ntea flag, IMO, should be
>removed in the next release as it can cause more consequence than good.


I guess the big question here is whether anyone finds the use of ntea useful
for FAT partitions.  This is the one advantage that ntea has over ntsec.  If
the answer here is that ntea is considered useful for FAT despite the ugly,
quickly growing file it produces, then I'd say keep it.  Just my $.02.



Larry Hall                              lhall@rfk.com
RFK Partners, Inc.                      http://www.rfk.com
118 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX



--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: chmod and ntsec
  2001-02-13  7:27     ` Malcolm Boekhoff
@ 2001-02-13  7:42       ` Earnie Boyd
  2001-02-13  9:26         ` Larry Hall (RFK Partners, Inc)
  0 siblings, 1 reply; 22+ messages in thread
From: Earnie Boyd @ 2001-02-13  7:42 UTC (permalink / raw)
  To: Malcolm Boekhoff; +Cc: Cygwin News Group

Malcolm Boekhoff wrote:
> 
> So is the definitive, expert answer to use "ntsec" or "ntsec ntea"?
> 

The ntsec flag overrides the ntea flag IIRC.  There is no reason to use
the ntea flag if you use the ntsec flag.  The ntea flag, IMO, should be
removed in the next release as it can cause more consequence than good.

Earnie.

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: chmod and ntsec
  2001-02-13  6:11   ` Earnie Boyd
@ 2001-02-13  7:27     ` Malcolm Boekhoff
  2001-02-13  7:42       ` Earnie Boyd
  0 siblings, 1 reply; 22+ messages in thread
From: Malcolm Boekhoff @ 2001-02-13  7:27 UTC (permalink / raw)
  To: Cygwin News Group

So is the definitive, expert answer to use "ntsec" or "ntsec ntea"?

----- Original Message -----
From: "Earnie Boyd" <earnie_boyd@yahoo.com>
To: "Malcolm Boekhoff" <Malcolm.Boekhoff@actfs.co.uk>
Cc: "Cygwin News Group" <cygwin@sources.redhat.com>
Sent: Tuesday, February 13, 2001 2:11 PM
Subject: Re: chmod and ntsec


> Malcolm Boekhoff wrote:
> >
> > I wasted a load of time trying to get ntsec working, too, so now I just use "ntea" in the CYGWIN variable. Apparently this is
not a
> > good idea for FAT disks, but all mine are NTFS so I don't care.
> >
>
> Just remember that all diskettes are FAT and that you can't create a
> NTFS diskette.  So, if you use your Cygwin utilities to access the
> diskette then you will get an attributes file on the diskette.
>
> Earnie.
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com



--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: chmod and ntsec
  2001-02-13  2:14 ` Malcolm Boekhoff
@ 2001-02-13  6:11   ` Earnie Boyd
  2001-02-13  7:27     ` Malcolm Boekhoff
  0 siblings, 1 reply; 22+ messages in thread
From: Earnie Boyd @ 2001-02-13  6:11 UTC (permalink / raw)
  To: Malcolm Boekhoff; +Cc: Cygwin News Group

Malcolm Boekhoff wrote:
> 
> I wasted a load of time trying to get ntsec working, too, so now I just use "ntea" in the CYGWIN variable. Apparently this is not a
> good idea for FAT disks, but all mine are NTFS so I don't care.
> 

Just remember that all diskettes are FAT and that you can't create a
NTFS diskette.  So, if you use your Cygwin utilities to access the
diskette then you will get an attributes file on the diskette.

Earnie.

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: chmod and ntsec
  2001-02-12  8:43 Noel L Yap
  2001-02-12  8:59 ` Larry Hall (RFK Partners, Inc)
@ 2001-02-13  2:14 ` Malcolm Boekhoff
  2001-02-13  6:11   ` Earnie Boyd
  1 sibling, 1 reply; 22+ messages in thread
From: Malcolm Boekhoff @ 2001-02-13  2:14 UTC (permalink / raw)
  To: Cygwin News Group

Subject: chmod and ntsec

If you can't be bothered to read the 9 page FAQ on ntsec, try this:

bash> cp -p /etc/passwd /etc/passwd0 && mkpasswd -l -d >/etc/passwd
bash> cp -p /etc/group  /etc/group0  && mkgroup  -l -d >/etc/group

The "-l" switch examines your NT musrmgr.exe database.
The "-d" switch must examine the user database on your domain.

I wasted a load of time trying to get ntsec working, too, so now I just use "ntea" in the CYGWIN variable. Apparently this is not a
good idea for FAT disks, but all mine are NTFS so I don't care.

> I'm running CygWin on Win2k with CYGWIN="binmode ntea ntsec tty".  I'm not sure
> what version of CygWin I'm running.
>
> When I try to chmod something, I get a permission denied error.  But I'm able to
> change the permissions through Window's GUI.  What am I doing wrong?  Does chmod
> not support NT security, yet (is it even possible for it to)?  Do I need to
> upgrade?




--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: chmod and ntsec
  2001-02-12  8:43 Noel L Yap
@ 2001-02-12  8:59 ` Larry Hall (RFK Partners, Inc)
  2001-02-13  2:14 ` Malcolm Boekhoff
  1 sibling, 0 replies; 22+ messages in thread
From: Larry Hall (RFK Partners, Inc) @ 2001-02-12  8:59 UTC (permalink / raw)
  To: Noel L Yap, cygwin

At 11:30 AM 2/12/2001, Noel L Yap wrote:
>I'm running CygWin on Win2k with CYGWIN="binmode ntea ntsec tty".  I'm not sure
>what version of CygWin I'm running.
>
>When I try to chmod something, I get a permission denied error.  But I'm able to
>change the permissions through Window's GUI.  What am I doing wrong?  Does chmod
>not support NT security, yet (is it even possible for it to)?  Do I need to
>upgrade?
>
>Thanks much,
>Noel


You'll find allot of good information in the user documentation.  It describes
what you need to do to make ntsec work for you on NTFS partitions.  Check it
out and see if that helps you solve your problems.

http://www.cygwin.com/cygwin-ug-net/cygwin-ug-net.html



Larry Hall                              lhall@rfk.com
RFK Partners, Inc.                      http://www.rfk.com
118 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX



--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 22+ messages in thread

* chmod and ntsec
@ 2001-02-12  8:43 Noel L Yap
  2001-02-12  8:59 ` Larry Hall (RFK Partners, Inc)
  2001-02-13  2:14 ` Malcolm Boekhoff
  0 siblings, 2 replies; 22+ messages in thread
From: Noel L Yap @ 2001-02-12  8:43 UTC (permalink / raw)
  To: cygwin

I'm running CygWin on Win2k with CYGWIN="binmode ntea ntsec tty".  I'm not sure
what version of CygWin I'm running.

When I try to chmod something, I get a permission denied error.  But I'm able to
change the permissions through Window's GUI.  What am I doing wrong?  Does chmod
not support NT security, yet (is it even possible for it to)?  Do I need to
upgrade?

Thanks much,
Noel



This communication is for informational purposes only.  It is not intended as
an offer or solicitation for the purchase or sale of any financial instrument
or as an official confirmation of any transaction. All market prices, data
and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of J.P. Morgan Chase & Co. Incorporated, its
subsidiaries and affiliates.


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2001-04-02  4:56 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-30  7:05 chmod and ntsec Heimo Ponnath
2001-03-30  8:18 ` Batch files Matt Minnis
2001-03-30  9:14   ` Larry Hall (RFK Partners, Inc)
2001-03-30  9:20     ` Matt Minnis
2001-03-30  9:36       ` Larry Hall (RFK Partners, Inc)
2001-03-30 11:47     ` Earnie Boyd
2001-03-30 12:09       ` Andrew Markebo
2001-03-30 12:21         ` Larry Hall (RFK Partners, Inc)
2001-03-30 14:46           ` Jan Vicherek
2001-04-02  4:56             ` Earnie Boyd
2001-03-30  9:02 ` chmod and ntsec Corinna Vinschen
2001-03-30 15:36   ` Heimo Ponnath
  -- strict thread matches above, loose matches on Subject: below --
2001-03-29 11:55 Heimo Ponnath
2001-03-29 17:53 ` Christopher Faylor
2001-03-29 18:11 ` Larry Hall (RFK Partners, Inc)
2001-02-12  8:43 Noel L Yap
2001-02-12  8:59 ` Larry Hall (RFK Partners, Inc)
2001-02-13  2:14 ` Malcolm Boekhoff
2001-02-13  6:11   ` Earnie Boyd
2001-02-13  7:27     ` Malcolm Boekhoff
2001-02-13  7:42       ` Earnie Boyd
2001-02-13  9:26         ` Larry Hall (RFK Partners, Inc)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).