X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Ronald Fischer Subject: Can't set access rights with chmod Date: Mon, 5 May 2008 14:12:09 +0000 (UTC) Lines: 37 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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: List-Subscribe: List-Archive: List-Post: List-Help: , 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/