fsperms is a simple tool to apply permission and ownership changes to entire filesystems based on security templates.
One might ask "why is such a tool is needed?" I've often found source and package installs that place files with either bad or insecure permissions and/or ownership. By establishing a security template for a package I no longer have to remember or worry about fixing such problems after package updates. I can use fsperms to reapply the sane settings after every install or update.
Depending on the complexity of your desired settings it can also be quicker to write a security template than it would be to manually apply permissions in some cases.
Sample output listing the installed security templates:
root@foo-1:~# fssecure -l fssecure, v1.0: (c) 2006, Arthur Corliss |
Copyright © 1997 - 2016, Arthur Corliss, all rights reserved.