You are not logged in.

#1 2015-03-09 22:51:37

OlafLostViking
Member
From: Lost
Registered: 2013-01-30
Posts: 58

[SOLVED] setfacl for unknown user (modify possible, remove fails)

When setting ACLs on a file using a non-existant user, setfacl is working as expected (ignoring that the uid is not in /etc/passwd). But when trying to remove this ACL it fails.

# setfacl --modify="u:100000:x" /home/bla/
# getfacl /home/bla/
getfacl: Removing leading '/' from absolute path names
# file: home/bla/
# owner: bla
# group: bla
user::rwx
user:100000:--x
group::---
mask::--x
other::---
# setfacl --remove="u:100000:x" /home/bla/
setfacl: Option -x: Invalid argument near character 10
#

The reason for these non-existant users are uid maps for lcx. So it should be a legitimate use of these uids. How to remove those ACLs without "resetting" all by using

setfacl -b /home/bla

?

Edit
Okay, Layer 8... It's simply

setfacl --remove="u:100000" /home/bla/

Last edited by OlafLostViking (2015-03-09 23:00:46)

Offline

Board footer

Powered by FluxBB