2

This website explains giving and removing the ACL. I have given the permission to another user, and now I want to remove it.

In the screenshot below, the getfacl is used to show that another user has been given the r and x accesses.

Then, I tried to use setfacl -x u:userID:rx /directory/for/the/file/ to remove the permission. But I got the error message saying setfacl: Option -x: Invalid argument near character 11.

Can I ask how to properly remove the permissions?

enter image description here

2 Answers2

0

I get this error when the username doesn't exist. So I recommend checking you input the correct username:

$ setfacl -m u:FAKEUSER:rwx .
setfacl: Option -m: Invalid argument near character 3
Migwell
  • 151
  • 6
0

@Migwell. your answer is correct, I faced the same problem, and after creating the user and group it is working now. Thank you

before running the setfacl command make sure the user [jane] and group [jungle] are exist in your system.

setfacl -m user:jane:rwx,group:jungle:rwx mydir


check jane exists or not

getent passwd jane

check jungle exists or not

getent group jungle


add jane

useradd jane

add jungle

groupadd jungle