public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Sky Diver <skydivergm@gmail.com>
To: cygwin@cygwin.com
Subject: ACL Hell
Date: Tue, 14 Jul 2015 22:15:00 -0000	[thread overview]
Message-ID: <CADWQZEsrNeL9D44D=Z25pxiF3pFmQdTTqRgD+uFmsUMgzhj+ow@mail.gmail.com> (raw)

Hi, in the past several months or so, cygwin started giving me ACL
pain in small surges which are gradually growing..

Here's a basic scenario that is slowly, but surely, driving me NUTZ:

$ ln -s /cygdrive/c/tmp /tmp
ln: failed to create symbolic link ‘/tmp’: Operation not permitted

Some other examples (it doesn't matter which is the current working dir):

$ touch x

$ ls -l x
-rw-rwxr--+ 1 sky None 0 Jul 15 00:46 x*

$ getfacl x
# file: x
# owner: sky
# group: None
user::rw-
group::r--
group:root:rwx
group:Authenticated Users:rwx
group:SYSTEM:rwx
group:Users:r-x
mask:rwx
other:r--

$ ln -s x y
ln: failed to create symbolic link ‘y’: Operation not permitted


This didn't use to be like that.


Cygwin's directory itself seems to be ok:

$ ls -ld cygwin
drwxrwx---+ 1 sky None 0 Jul 15 00:19 cygwin/

$ getfacl cygwin/
# file: cygwin/
# owner: sky
# group: None
user::rwx
group::---
group:root:rwx
group:Authenticated Users:rwx
group:SYSTEM:rwx
group:Users:r-x
mask:rwx
other:---
default:user::rwx
default:user:sky:rwx
default:group::---
default:group:root:rwx
default:group:Authenticated Users:rwx
default:group:SYSTEM:rwx
default:group:Users:r-x
default:mask:rwx
default:other:---

I found a thread that shows how to remove ACL... Avec Plaisir!
I replaced the line in /etc/fstab with this one:

none /cygdrive cygdrive binary,noacl,posix=0,user 0 0

Closed all cygwin terminals, reopened and issue:

$ getfacl cygwin/
# file: cygwin/
# owner: sky
# group: None
user::rwx
group::r-x
other:r-x

Much better for all I care.
However, this didn't change anything. Touching x and linking y yielded
the exact same results as above.

Here's my cygwin details:

$ uname -a
CYGWIN_NT-6.3-WOW sky-pc 2.0.2(0.287/5/3) 2015-05-08 17:03 i686 Cygwin

Looking at cygwin via Properties -> Security tab, the user (sky) is
the owner of the directory and has Full Control (recursively).

My main goal is not to get stuck on trivialities like soft linking of
file creation.
But what I would really like is to get rid of ACL altogether (towards
that end I'll mention that I switched UAC off long time ago).
I don't care about security, I just want to work and this is holding
me back both at home and at my work place.

Please.. Help...

--
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

             reply	other threads:[~2015-07-14 22:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-14 22:15 Sky Diver [this message]
2015-07-14 23:21 ` Steven Penny
2015-07-15  8:35 ` Andrey Repin
2015-07-15 14:52   ` Larry Hall (Cygwin)
2015-07-15 19:18   ` Sky Diver
2015-07-15 20:25     ` Sky Diver
2015-07-17 11:29       ` Kurt Franke
2015-07-23 15:29         ` Sky Diver
2015-07-16  3:46     ` Duane Ellis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CADWQZEsrNeL9D44D=Z25pxiF3pFmQdTTqRgD+uFmsUMgzhj+ow@mail.gmail.com' \
    --to=skydivergm@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).