This is the mail archive of the
mailing list for the Cygwin project.
RE: can't chmod files that I own
- From: "Zieg, Mark" <mark dot zieg at lmco dot com>
- To: "'Jeff Perry'" <jsp at mail dot utexas dot edu>, cygwin at cygwin dot com
- Date: Thu, 26 Sep 2002 09:23:27 -0400
- Subject: RE: can't chmod files that I own
I had the exact same problem with Cygwin & CVS.
I think the problem is that NT's idea of "perry" doesn't match Cygwin's
definition of UID 1119. If you're on an NT Domain, have you done the
"mkpasswd -u perry -d COMPANY_DOMAIN >> /etc/passwd"? That's what fixed it
See this for another workaround:
From: Jeff Perry [mailto:firstname.lastname@example.org]
Sent: Wednesday, September 25, 2002 5:19 PM
Subject: can't chmod files that I own
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.
cvs server: Updating .
cvs update: cannot change mode of ./blah.cpp: Invalid argument
$ ls -l
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:
$ echo text > temp
$ ls -l
-rwxrwxrwx 1 1119 None 5 Sep 25 14:56 temp
$ chown Administrator temp
$ chmod -x temp
$ ls -l
-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