Can't set access rights with chmod

2008-05-05 Thread Ronald Fischer
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/



Re: Can't set access rights with chmod (additional info)

2008-05-05 Thread Ronald Fischer
Ronald Fischer fischerr.external at infineon.com writes:
In addition to what I wrote in the previous posting, I also tried
the following:

export CYGWIN=smbntsec

Now the behaviour changed in that chmod now works well for *new*
files created, but for old files I still can't change anything.
This time, I get the error message permission denied:

$ ls -l x1.pl
-rwx--+ 1 fischron  104 May  5 15:54 x1.pl
$ chmod ugo+x x1.pl
chmod: changing permissions of `x1.pl': Permission denied
$


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/