This is a quick question, I have tried to find an answer but it’s been unsuccesful.
Is there a way to set different default permissions for files and for directories?
To illustrate better, let’s say I have a /project samba share. I want to configure that share so that new files created in it have the file permissions of 660, and new directories are created with 750.
I have thought of umask, acls, but I dont really know how to accomplish this.
Just to be clear, that would allow any files created to be modified by
anybody who is either the group-owner (and probably the creator if
that’s the case) or a group-owner (member of the specified group), but
that would also mean that any directories created could only be
browsed/read by group-owner members. That may be a little strange,
since members of the group could modify files created, at the base
level, but could not create/delete files in any subdirectories because
the directory permissions did not allow the group-owner to write.
I guess this goes back to: what is your business need here? Maybe it
is, “Allow modification of files anywhere but only creation by
group-owners in this subdirectory” but that seems pretty strange without
an interesting story behind it.
Good luck.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/