Isilon: Cloning Windows/Unix permissions from one file to another file
One of the most annoying managements tasks of a Network Attached Storage is managing permissions for Windows files. This is even further complicated using systems which allow for work Windows and Unix shares – Such as an EMC Isilon. If you haven’t picked it up by now, i’m a command line guy with a strong unix background – so I don’t like using the windows GUI to control SMB permissions. What I needed was really simple, just to clone permissions (both unix and windows) from one file to another. You can use setfacp/getfacl, but it’s kludgy and deprecated in favor of ls/chmod. So I came up with a simple perl script which can be ran on Isilon to clone permissions easily and quickly. As you can see in the example below permissions get cloned from <source> to <target>. [box]isilon-1# ls -led source -rwxrwx–x + 1 root wheel 1580 Mar 20 13:14 source OWNER: user:root GROUP: group:wheel CONTROL:dacl_auto_inherited,sacl_auto_inherited 0: user:DOMAINCincyStorageallow inherited file_gen_read,file_gen_write,file_gen_execute,std_write_dac,delete_child,inherited_aceRead More →