* Can't set access rights with chmod
@ 2008-05-05 14:25 Ronald Fischer
2008-05-05 16:49 ` Can't set access rights with chmod (additional info) Ronald Fischer
0 siblings, 1 reply; 2+ messages in thread
From: Ronald Fischer @ 2008-05-05 14:25 UTC (permalink / raw)
To: cygwin
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/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Can't set access rights with chmod (additional info)
2008-05-05 14:25 Can't set access rights with chmod Ronald Fischer
@ 2008-05-05 16:49 ` Ronald Fischer
0 siblings, 0 replies; 2+ messages in thread
From: Ronald Fischer @ 2008-05-05 16:49 UTC (permalink / raw)
To: cygwin
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/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-05-05 14:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-05 14:25 Can't set access rights with chmod Ronald Fischer
2008-05-05 16:49 ` Can't set access rights with chmod (additional info) Ronald Fischer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).