Are these directories, or samba shares? Are they subdirectories on a partition, or is each a mountpoint for a respective partition.
If they are samba shares, you can use the "force group" option.
If they are mount points for individual partitions, an they use a certain filesystem, then you could use the mount option "gid=".
If what you want to do is allow certain groups access, you could use the "setfacl" command to create a default group and permissions for the directory. Then files created in the directory will inherit the ACLs.
Some filesystems may support the grpid option. If the directory has the setgid bit set, files created in them will inherit the group ownership.
Last edited by jschiwal; 07-17-2006 at 11:41 AM.
|