delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/12/19/20:53:32

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <00F8D6E8AB0DD3118F1A006008186C962479E0@SERVER1>
From: Andrew Dalgleish <andrewd AT axonet DOT com DOT au>
To: cygwin AT cygwin DOT com
Subject: getfacl/setfacl problem
Date: Wed, 20 Dec 2000 12:52:01 +1100
X-Priority: 3
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.0.1458.49)

I have some permissions screwed up.

I created a directory using the local admin account, and it inherited
permissions from the local "Users" group.
I then installed cygwin using a domain account.
I created a valid /etc/passwd and /etc/group

I used 
chgrp -R "Domain Users" /
to reset the group and chmod to reset the permissions.
Everything looks ok:

andrewd AT A5-2K:/ $ls -al / | grep var
drwxr-xr-x   6 cygwin   Domain U        0 Dec 18 14:08 var

The problem is that for some reason the local "Users" group still has
access, as getfacl shows:

andrewd AT A5-2K:/ $getfacl /var
# file: /var
# owner: 1228
# group: 513
user::rwx
group::r-x
group:545:rwx
mask::r-x
other::r-x
default:user::rwx
default:group::r-x
default:group:545:rwx
default:mask::r-x
default:other::r-x

For some reason I cant get setfacl to remove the "group:545:" entries,
all I get is
"setfacl: illegal acl entries"
even the following doesn't work
touch foo
touch bar
getfacl foo | setfacl -f - bar

(As a work around, 
chgrp "Users" $FILE && chgrp "Domain Users" $FILE
seems to work.)

I'm about to recompile everything so I can step through it.

Regards,
Andrew Dalgleish


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019