delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/01/18/15:43:45

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <3C488824.1070006@cportcorp.com>
Date: Fri, 18 Jan 2002 15:40:04 -0500
From: Peter Buckley <peter DOT buckley AT cportcorp DOT com>
User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.4) Gecko/20011019 Netscape6/6.2
X-Accept-Language: en-us
MIME-Version: 1.0
To: Alex BATKO <abatko AT milquetoast DOT cs DOT mcgill DOT ca>, cygwin AT cygwin DOT com
Subject: Re: no output from net.exe
References: <3C484C07 DOT 7040202 AT cportcorp DOT com> <911C684A29ACD311921800508B7293BA037D2A5E AT cnmail> <20020118110817 DOT B786 AT cs DOT mcgill DOT ca> <3C484C07 DOT 7040202 AT cportcorp DOT com> <20020118125910 DOT C786 AT cs DOT mcgill DOT ca> <4 DOT 3 DOT 1 DOT 2 DOT 20020118131035 DOT 02354b90 AT pop DOT ma DOT ultranet DOT com> <20020118153016 DOT E786 AT cs DOT mcgill DOT ca>

"ntea" makes you have less usable disk space- it creates a big file 
IIRC. I don't know if it just creates the file on FAT, or if the file is 
only undeletable on FAT. "ntsec" works on NT and NTFS.

HTH,
Peter

Alex BATKO wrote:

> +-------------------
> | At 12:59 PM 1/18/2002, Alex BATKO wrote:
> | >Is that OK ?  I need 'ntea' to effectively use chmod.
> | 
> | Not if you're working on NTFS partitions you don't.  You're *much* better 
> | off using 'ntsec'.  You can see the user guide if you're curious about 
> | this setting.  Of course, if you're running on a FAT partition and need
> | chmod to work there, then you're stuck with 'ntea'.
> +-------------------
> 
> 
> The windows machine in question is running Windows 2000, and is using NTFS.
> Look at this:
> 
> {1} cd /tmp/
> {2} ls -l
> total 0
> {3} echo $CYGWIN 
> binmode ntea
> {4} umask
> 077
> {5} touch blah
> {6} ls -l
> total 0
> -rw-------    1 ntroot   Administ        0 Jan 18 14:38 blah
> {7} chmod 644 blah 
> {8} ls -l
> total 0
> -rw-r--r--    1 ntroot   Administ        0 Jan 18 14:38 blah
> {9} export CYGWIN='binmode ntsec'
> {10} ls -l
> -rwxrwxrwx    1 Administ Administ        0 Jan 18 14:38 blah
> {11} export CYGWIN='binmode ntea'
> {12} ls -l
> -rw-r--r--    1 ntroot   Administ        0 Jan 18 14:38 blah
> {13} export CYGWIN='binmode ntsec'
> {14} ls -l
> -rw-------    1 ntroot   Administ        0 Jan 18 14:39 blah
> {15} chmod 755 blah 
> {16} ls -l
> total 0
> -rwxr-xr-x    1 ntroot   Administ        0 Jan 18 14:39 blah
> 
> 
> This experiment shows that 'ntea' and 'ntsec' can both set
> permissions properly on NTFS.  It also shows that the modes will
> look different from 'ntsec' if set by 'ntea' (and visa versa).
> 
> I don't know what you mean by saying that it's much better
> to use 'ntsec' on NTFS.  I realize that the Cygwin User's Guide
> (http://sources.redhat.com/cygwin/cygwin-ug-net/using-cygwinenv.html)
> about the CYGWIN environment variable states that with 'ntsec'
> set, the file permissions can only be set on NTFS partitions.
> 
> The guide also says that the 'ntea' option only operates under
> Windows NT (but clearly, it operates under Windows 2000).
> 
> But the guide doesn't say that one is better.  I may be completely
> missing something (in reading and knowledge), so please advise...
> 
> I apologize in advance if I am wrong about what I have written.
> 
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting:         http://cygwin.com/bugs.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
> 
> 


-- 
Your mouse has moved.
Windows NT must be restarted for the change to take effect.
Reboot now?  [OK]

--


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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