In reply to notKlaatu:
Quote:
Then you are looking to set attributes on the filesystem.
So, in Samba you are configuring the shared directory and setting a umask for the directories. On many Linux filesystems, you can do this with `setfacl`. I have never had the occasion to be this granular so you'll need to read the man page or an online tutorial to learn more about it, but that is probably what you are looking for. You want to set a mask on directory 'Dt' such that anything written into it has specific attributes; that's done with ACL's via `setfacl`.
Good luck!
|
Ok. Thank you.
If someone knows how to write an ACL which:
- for every new file in a directory "D"
sets its owner to "user1",
its owner group to "group1"
and its permissions to 660
- for every new directory in a directory "D"
sets its owner to "user1",
its owner group to "group1"
and its permissions to 770
please post the appropriate commands to run for it to work on my OS.
Maybe this is not the right way to put things.
Maybe I should better state things like this:
How to write an ACL which:
for every new file in a directory "D":
- grants the read and write permissions to a user "user1",
- grants the read and write permissions to a group of users "group1",
- grants no permissions to others.
for every new directory in a directory "D":
- grants the read, write and execute permissions to a user "user1",
- grants the read, write and execute permissions to a group of users "group1",
- grants no permissions to others.
Best regards,
--
OS: Debian GNU/Linux 7.2 (wheezy)
"/home" partition mounted with ACL support.