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: Andrey Repin <anrdaemon at yandex dot ru>
- To: diod lightbulb <greendiod at gmail dot com>, cygwin at cygwin dot com
- Date: Tue, 10 Feb 2015 02:50:27 +0300
- 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> <CAO=+TS_qZU45mZz3uHu7GznFMDgU7cEyvZEMLZOWFCibbb9Pxg at mail dot gmail dot com>
- Reply-to: cygwin at cygwin dot com
Greetings, diod lightbulb!
> 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.
Hint: don't bother with it.
You're trying to create a lot of trouble for yourself with very little gain.
Only look for POSIX permissions, where you absolutely MUST have them literal
(i.e. where you have to cater to buggy software that don't properly understand
ACL's).
--
WBR,
Andrey Repin (anrdaemon@yandex.ru) 10.02.2015, <02:44>
Sorry for my terrible english...
--
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