FlexibleToast
Dabbler
- Joined
- Aug 10, 2014
- Messages
- 32
I have a dataset that is being nfs shared to a server that is hosting Nextcloud. Everything works, but anytime a file is created the permissions are 644:
What I want is the user and group to have read/write and others to have no access, so 660. Can I change the umask for just one directory and its sub directories? Is there a way to do with acl's? I'm not sure how to proceed.
Code:
root@freenas:/mnt/tank0/home/joseph/files # ls -l total 75917 ... drwxrwx--- 2 www-data joseph 3 Jan 1 18:51 Test ... root@freenas:/mnt/tank0/home/joseph/files # cd Test/ root@freenas:/mnt/tank0/home/joseph/files/Test # ls -l total 1 -rw-r--r-- 1 www-data joseph 8 Jan 1 18:51 Test file.txt <-- File created in Nextcloud gui
What I want is the user and group to have read/write and others to have no access, so 660. Can I change the umask for just one directory and its sub directories? Is there a way to do with acl's? I'm not sure how to proceed.