How do I remove permission to specific user using setfacl

6

I just executed the following command

setfacl -m user:userXXX:r /home/userYYY/private/

now I see

$ ll /home/userYYY/private/     
total 32                                            
drwx------+  5 userYYY quant   512 Sep  5 03:26 ./ 
drwxr-xr-x  41 userYYY quant 32768 Sep  5 12:49 ../
  1. Does this little + the result of it ?
  2. How do I remove permission to userXXX

statquant

Posted 2016-09-06T06:54:09.197

Reputation: 195

Answers

10

The following should do the trick :

setfacl -x u:userXXX home/userYYY/private/

And as far as I know, where ACL are enabled, a + sign is shown.

Kaël

Posted 2016-09-06T06:54:09.197

Reputation: 111

1

  1. yes
  2. use command like this:

    setfacl -m user:userXXX:-r /home/userYYY/private/

or remove user at all

setfacl -x user:userXXX /home/userYYY/private/

Romeo Ninov

Posted 2016-09-06T06:54:09.197

Reputation: 2 062

2I still have the + I found setfacl -b /home/userYYY/private removes it (removes all ACL perm stuff) – statquant – 2016-09-06T07:13:42.583

IMHO you have it (if you use -m) because it keep record of the user, but w/o any rights – Romeo Ninov – 2016-09-06T07:24:56.963

yes just wanted to remove all trace of it – statquant – 2016-09-06T07:25:38.950