CRM Hosting


Add to Technorati Favorites

Access control lists in FreeBSD

Access control lists are extended attributes used to improve ability to control the access of files. They allow permissions to be set for individual groups and users and not just the owning user, owning group, and all other users.



Unfortunately, in FreeBSD the setfacl command doesn’t have the -R parameter for recursive directory parse.

So, if you want to set ACLs for a folder and it’s subfolders, you have to use this:

find . -type d -exec setfacl -m u:user_name:rwx ‘{}’ \;

find . -type f -exec setfacl -m u:user_name:rwx ‘{}’ \;

This will find all folders (-type d) and all files (-type f) in the current directory and will set the ACLs you want for the user_name user.


You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

AddThis Social Bookmark Button
Comments are DoFollow, so you may consider writing a small note :)

One Response to “Access control lists in FreeBSD”

  1. Interesting resources on this blog. I`m willing to make an ebook and the documentation you have is very important in my project. Thanks a lot ! Bookmarked and hope to see more posts like this one.

Leave a Reply



BRDTracker