[HOW TO] SETFACL funny

Hello,

Humnnn "setfacl" - Do you know? Do you use?
Oh I know it via co-worker. Really, it's useful!

Today, I want to use this command. But .... i have a problem with "setfacl" in Linux Mint 14. 
Return error: setfacl /etc/hehe/haha.conf operation not supported.

No problem, googling - I think so.

And ... I found the solution to fix it as below:

UUID=30db91db-1f20-448c-9568-1593 /   ext4 errors=remount-ro 0       1

We need to add "acl"

UUID=30db91db-1f20-448c-9568-1593 /   ext4 errors=remount-ro,acl 0       1

Done! now the command setfacl works perfectly.

Finally




EXAMPLES

Granting an additional user read access


setfacl -m u:lisa:r file

Revoking write access from all groups and all named users (using the effective rights mask)

setfacl -m m::rx file

Removing a named group entry from a file's ACL

setfacl -x g:staff file

Copying the ACL of one file to another

getfacl file1 | setfacl --set-file=- file2

Copying the access ACL into the Default ACL

getfacl -a dir | setfacl -d -M- dir





Thank you for reading this article, please a comment if you are interested.
Tiến Phan - R0039
Knowledge is Endless
Sharing for Success

0 nhận xét:

Post a Comment