delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/09/25/17:18:44

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
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <003901c264d9$1be72850$40cf5380@cvis.psy.utexas.edu>
From: "Jeff Perry" <jsp AT mail DOT utexas DOT edu>
To: <cygwin AT cygwin DOT com>
Subject: can't chmod files that I own
Date: Wed, 25 Sep 2002 16:18:35 -0500
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

I have read the documentation on 'ntsec', but I still don't understand why I
can't chmod files that I own.  I noticed this when using cvs.

For example:

$cvs update
cvs server: Updating .
U blah.cpp
cvs update: cannot change mode of ./blah.cpp: Invalid argument
$ ls -l
total 54
drwxrwxrwx    2 Administ None         4096 Sep 25 14:47 CVS
-rw-rw-rw-    1 1119     None          871 Sep 25 14:15 blah.cpp

Here is another example that doesn't involve cvs:

$ whoami
perry
$ echo text > temp
$ ls -l
total 1
-rwxrwxrwx    1 1119     None            5 Sep 25 14:56 temp
$ chown Administrator temp
$ chmod -x temp
$ ls -l
total 1
-rw-rw-rw-    1 Administ None            5 Sep 25 14:56 temp

perry cannot chmod a file owned by perry, but perry can change the file's
ownership to Administrator and then chmod the file.



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