0

There is file that I want to share with everyone, except from 3 specific users.

I can use the linux extended attributes to create an ACL and give access to specific users, but the problem is that I don't know all the users, I know only the blacklisted ones.

setfacl -m u:user1:r test1

Is there a way to do that by creating an ACL for the blacklisted user accounts?

belabrinel
  • 851
  • 8
  • 15

1 Answers1

0

I found out in the meanwhile....

# setfacl -m u:mat:0 mymat
# setfacl -m u:user1:0 test1

# getfacl test1
# file: test1
# owner: root
# group: root
user::rw-
user:user1:---
group::r--
mask::r--
other::r--
belabrinel
  • 851
  • 8
  • 15