How can I add ACL permissions for IIS APPPOOL\* accounts via Powershell?

First of all, use Set-Acl like this, as the directory path is the first positional argument: Set-Acl $directory $acl Second, you should create the user object with only one argument: $user = New-Object System.Security.Principal.NTAccount(“$domain\\$username”) UPDATE: Seems that it won’t accept the “IIS APPPOOL\AppPoolName” as an NTAccount identifier. Now, there are two ways to accomplish what … Read more

setfacl: x.txt: Operation not supported

This sounds like the default mount behavior is not allowing ACLs on the filesystem. getfacl will report the normal filesystem permissions without error, but setfacl is unable to operate because the filesystem is mounted without the ACL option. You can add this in /etc/fstab or by modifying your filesystem options. Assuming you have the /home … Read more

Working around an AWS network ACL rule limit

Here’s a left-field idea.. you could “null-route” the 50 blocked IPs, by adding an “broken” route to the VPC route table for each IP. This wouldn’t prevent the traffic from the IPs hitting your infrastructure (only the NACLs and the SGs will prevent that), but it’ll prevent the return traffic from every making it “back … Read more

How do I copy ACLs on Mac OS X?

ls -e Print the Access Control List (ACL) associated with the file, if present, in long (-l) output. this gives a result such as… drwxr-xr-x@ 19 localadmin 646B Aug 4 00:21 APPBUNDLE 0: user:localadmin allow add_file,add_subdirectory,writeattr,writeextattr,writesecurity ⬆ ⇧ ⇶ ⬆ Personally, I have “exports” in my ~/.bash_profile export FILE_ALL=”read,write,append,execute,delete,readattr,writeattr,readextattr,writeextattr,readsecurity,writesecurity,chown” export DIR_ALL=”list,search,add_file,add_subdirectory,delete_child,readattr,writeattr,readextattr,writeextattr,readsecurity,writesecurity,chown” that make such a … Read more

Can I override my umask using ACLs to make all files created in a given directory world readable?

Yes, ACLs can do this. Ensure your filesystem is mounted with acl. To check this, type mount. You should see acl listed among other permissions, e.g. /dev/sda1 on / type ext4 (rw,errors=remount-ro,acl) If it’s not mounted with acl, open up /etc/fstab, and add acl to the list of options: # /etc/fstab: static file system information. … Read more