First version of a smart ACL-setting script.