I need a script to apply ACLs to everyone's home directory at one time, based on their userID?
Posted on 2011-05-04
We have several hundred users, and their home directories currently live on a Samba server that doesn't have ACLs...we are migrating to a SAN that uses Windows ACLs...so we are going to copy everyone's home directories to the new SAN, but then we need to setup the ACLs for each home directory so the user has access to only their home directory. The name of the folder corresponds to their login.
Obviously I want to script this, but not sure how :)
So I want a script that will look at the folder for each home directory, take the name of the directory and use it as the user name and set ACLs so that user name can have full access to the folder.
set ACL on the folder so that user joesmith has read/write access
any ideas are appreciated!