delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/05/05/10:13:01

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Ronald Fischer <fischerr DOT external AT infineon DOT com>
Subject: Can't set access rights with chmod
Date: Mon, 5 May 2008 14:12:09 +0000 (UTC)
Lines: 37
Message-ID: <loom.20080505T135643-269@post.gmane.org>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

Please have a look at the following transscript:

$ ls -l x1.pl
-rw-r--r-- 1 fischron mkgroup-l-d 104 May  5 15:54 x1.pl
$ chmod 0777 x1.pl
$ ls -l x1.pl
-rw-r--r-- 1 fischron mkgroup-l-d 104 May  5 15:54 x1.pl
$ chmod +x x1.pl
$ ls -l x1.pl
-rw-r--r-- 1 fischron mkgroup-l-d 104 May  5 15:54 x1.pl

The same happens when I try other access right combinations. 
Somehow, the files get access rights when created (typically
0644, sometimes 0755), but I have no way to change the access
right afterwards.

This happens only on files stored on my networked drive. 

In the Cygwin FAQ, I found the following hint:

  "The most common case is that your /etc/passwd or /etc/group 
   files are not properly set up. If ls -l shows a group of 
   mkpasswd or mkgroup, you need to run one or both of those 
   commands."

Hmmm... my group is not listed as mkgroup, but as the pretty 
similar mkgroup-l-d. OTOH, chmod works fine on the 
non-networked drive (/cygdrive/c), and there ls -l shows 
mkgroup-l-d as well. Also, neither in the man page of mkgroup,
nor on the cygwin FAQ, I could find a hint on how to use the
"mkgroup" program to remedy my situation - if this really is 
the reason for the problem at all.

What could I do to get it working?

Ronald



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