ACL Hell

Sky Diver skydivergm@gmail.com
Tue Jul 14 22:15:00 GMT 2015


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



More information about the Cygwin mailing list