This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: ls not in sync with chmod (weird problems with file permissions)
- From: diod lightbulb <greendiod at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 9 Feb 2015 22:00:52 +0100
- Subject: Re: ls not in sync with chmod (weird problems with file permissions)
- Authentication-results: sourceware.org; auth=none
- References: <CAO=+TS98PdSMcxRoX1RgF3kawZ-XCTE6LKzGYkFEFuCrTtB54A at mail dot gmail dot com> <20150209162607 dot GE5633 at calimero dot vinschen dot de>
On 9 February 2015 at 17:26, Corinna Vinschen <corinna-cygwin@cygwin.com> wrote:
> On Feb 9 16:37, diod lightbulb wrote:
>> HI all,
>>
>> Maybe this is a regression. This is linked to the problem reported in
>> this other thread https://cygwin.com/ml/cygwin/2015-02/msg00100.html .
>> I took notice of
>> it right after I updated cygwin (setup.exe 2.867) today.
>
> Does https://cygwin.com/faq/faq.html#faq.using.ssh-pubkey-stops-working
> help?
>
>
> Corinna
>
Hi, Corinna,
Sorry, I didn't get the time to completely check the other thread as I
had a lot of troubles subscribing to the mailing list, your answer was
already there.Thank you, this answer is spot on.
To sum up (please correct me if I'm wrong), here is how I understand
what happened:
a- the Posix file permissions under my home directory remained pretty
much the same as those files/directories were created by
cygwin-related apps
b- After your fix, the ACLs struck back in non-cygwin generated files.
Unfortunately, even if I took care chmod'ing (644) nearly all my
files, the ACLs got rid of all that.
All I can do now is apparently to run all my pre-existing files thru
setfacl -b (I like to keep my files with 644 permissions) followed by
chmod. I just have to figure out how to retain the execution bit for
the few select executables that need it.
However, I'd like to ask somthing else, is there a way to make newly
created files outside my home to respect my umask? I just tried touch
still buggy; ll stillbuggy reports -rw-rwxr--+ while stat -c " %a %u
%g" stillbuggy gives back " stillbuggy 674 1000 545. So ACL still
seems in effect on both my D: and E: drives except my cygwin home
directory. Any hint welcome.
Regards,
Green
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple