![]() ![]() Some utilities like cp, tar, and rsync will try to preserve the permissions of the source file(s) which will mask out your default ACL if the source file was not group-writable. For example, most files won't be executable by anyone from the start (depending on the mode argument to the open(2) or creat(2) call), just like when using umask. Of course, it also depends on the application creating the file. Now, use the following command to set the default ACL: setfacl -dm u::rwx,g::rwx,o::r /shared/directoryĪll new files in /shared/directory should now get the desired permissions. For example, if the directory is located on your root filesystem: /dev/mapper/qz-root / ext3 errors=remount-ro,acl 0 1 That's accomplished by the following: setfacl -Rm g:users:rwX,d:g:users:rwX data/. From what I understand, you want everyone in the users group to have write access to the data directory. ![]() In that case, add the option to your /etc/fstab. If you try to set the ACL and it errors out, go back and add the acl option to /etc/fstab right after defaults: defaults,acl. Other filesystems (e.g., ext3) need to be mounted with the acl option. Choose Static Data under the drop-down list of the Data Source Type in the Set Data Source pane. However for my devices writing temporary files for loops wasnt portable enough for my current project and I required performing actions for various things that might happen within a monitored directory, so heres the script I wrote based off leafeis answer and tested locally. If you click widgets, you will open an application canvas for the template project, where you can edit the template. If you are using ext4 then it is already enabled. First off a big thank you to leafei, Id hoped that it was that easy. Here's how to do it using default ACLs, at least under Linux.įirst, you might need to enable ACL support on your filesystem. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |