[OpenIndiana-discuss] Persistent permissions

Dormition Skete (Hotmail) dormitionskete at hotmail.com
Wed Aug 20 18:32:27 UTC 2014


Does OpenIndiana have facl?  If it does, “setfacl" should do what you are looking for.

http://www.computerhope.com/unix/usetfacl.htm




On Aug 20, 2014, at 12:14 PM, Michelle Knight <michelle at msknight.com> wrote:

> Hi Folks,
> 
> I'm not sure how to do this under ZFS, but here goes...
> 
> I have a ZFS share/pool which is accessed via SMB and also SFTP. A
> number of different users can put (and move) files between directories
> and even create directories in some cases.
> 
> I would like any file which is uploaded or moved (or new directory
> created) ... to obtain the permissions and levels of the directory that
> it is moved/copied to, regardless of what it had before it was moved,
> and regardless of the account or permissions of the account that did the
> operation, whether it be done via SMB or SFTP. Also, any directory then
> created will have the same influence on any files created/copied in to
> it.
> 
> At the moment, I am using a script which will go through the directory
> structures and forcefully re-write the ownerships and permissions of
> every file, but this obviously has an impact as if there is a copy
> operation going on when the script hits that particular area, it can
> re-write the permissions on a file and halt the copy process because of
> a permissions error.  This technique also has the problem that some
> users have to wait for the script to run, because they won't have
> access until the file/directory permissions have been re-written.
> 
> Is there any more elegant way of doing this please?
> 
> Michelle.
> 
> _______________________________________________
> openindiana-discuss mailing list
> openindiana-discuss at openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss
> 




More information about the openindiana-discuss mailing list