GNU/Find posix acl support

Cercare file che corrispondono a delle acl posix all’interno di un filesystem molto intricato è sempre un delirio.

Questa patch aggiunge l’opzione -acl al comando find (GNU/Findutils).

Esempio d’uso:

$ touch 1 2 3 4
$ mkdir 5
$ setfacl -m u:root:rx 1
$ setfacl -m g:bin:rw 2
$ setfacl -m u:pietro:--- 3
$ setfacl -m g:bin:rw 3
$ setfacl -m g:wheel:r 4
$ setfacl -m d:u:root:rwx 5
$ touch 5/6
$ setfacl -m g:wheel:r 5/6

$ find . -acl u:root:rx
./1
$ find . -acl u:root:*
./1
./5/6
$ find . -acl u:*:rx
./1
$ find . -acl g:*:*
./4
./3
./5/6
./2
$ find . -acl d:u:*:*
./5

Questa patch funziona solo su Linux, è scaricabile qua: http://www.bertera.it/software/findutils-acl/ è disponibile per la versione 4.42 e 4.5.6 di findutils

If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

Comments

No comments yet.

Leave a comment

(required)

(required)