delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/01/11/21:54:26

X-Spam-Check-By: sourceware.org
Date: Wed, 11 Jan 2006 21:54:17 -0500 (EST)
From: Igor Peshansky <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Matthew Pittman <m DOT pittman AT pks DOT com DOT au>
cc: cygwin AT cygwin DOT com
Subject: Re: chmod not working with ntsec set
In-Reply-To: <ALEGJCNFKFCKMFOAMPNFOEDNCAAA.m.pittman@pks.com.au>
Message-ID: <Pine.GSO.4.63.0601112142190.9317@access1.cims.nyu.edu>
References: <ALEGJCNFKFCKMFOAMPNFOEDNCAAA DOT m DOT pittman AT pks DOT com DOT au>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
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

On Thu, 12 Jan 2006, Matthew Pittman wrote:

> I know this is a dumb question but I have made genuine efforts to
> understand what I'm doing wrong and I'm still missing the point.  Sorry
> for wasting your time.
>
> I've installed cygwin under WXP in a domain.  When I first started bash
> I got a warning about groups but it said that I could safely ignore it
> so I did.  Of course now I can't remember exactly what it was but I
> think it was something about creating mkgroup-l-d because it couldn't
> create the correct group.
>
> I pressed on regardless but I found I couldn't get chmod to work so I
> searched the documentation, web and mailing list archives and found that
> I should set the CYGWIN environment variable to "ntsec".  I also noted
> that this should now be the default anyway but I set it anyway and it
> hasn't solved the problem.
>
> 	$ echo $CYGWIN
> 	ntsec
>
> 	$ chmod -v u+x .bashrc
> 	mode of `.bashrc' changed to 0744 (rwxr--r--)
>
> 	$ ls -l .bashrc
> 	-rw-r--r--  1 matt mkgroup-l-d 316 Jan 11 13:39 .bashrc
>
> I also note that I have write permission to the folder.
> 	drwxr-xr-x  1 matt mkgroup-l-d    4096 Jan 11 17:12 .
> Can anyone put me out of my misery?  Thanks in advance,

This is not a dumb question, this is an (incomplete) problem report.  It
would be very helpful if you read and followed the Cygwin problem
reporting guidelines at <http://cygwin.com/problems.html> -- particularly
the part about attaching (as an uncompressed text *attachment*) the output
of "cygcheck -svr" on your machine.

In the absence of that information, all I can do is venture a couple of
WAGs:

1) you probably have two users named "matt" on your machine -- one local,
and one domain.  The file is owned by the domain user, while you're logged
in as a local one, or vice versa.  Thus, chmod just doesn't have the
access rights to change permissions.

2) your file is on a FAT/FAT32 partition.  Please read the description of
the "ntea" option at <http://cygwin.com/cygwin-ug-net/using-cygwinenv.html>.
This information also used to be in the NTSEC part of the User's Guide at
<http://cygwin.com/cygwin-ug-net/ntsec.html> (and, in fact, the "ntea"
description has a link to it), but it doesn't seem to be there anymore.
In short, file permissions don't work on FAT (without special setup) and
FAT32 partitions (at all).

3) building on 2) above, your file could be on a network share that a)
doesn't support permissions, or b) is a Samba share but you don't have
"smbntsec" turned on (I forget whether it's on by default, and am too lazy
to look at the code at the moment).

Note that these are WAGs, due to lack of exact information.
HTH,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

--
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