Read this thread first!
Someone ran into a similar situation and this post should help. The only difference, if that you want to create a directory called department with root as it's owner and group. Export that directory via samba.
Now, you want to create the departmental folders under there with the following parameters.
* Root should be the owner of each folder for each department.
* The group of each directory should be set to its respective group. IE the group of the accounting folder should be the accounting group. The group of the HR folder should be HR
* The permissions of each directory should be 2770. The setgid bit is required so that new files and folders will be owned by the group.
Your directory structure should look like this:
Code:
drwxrwxr-x 4 root root 2048 Sep 2 11:03 departments
|-drwxrws--- 2 root accounting 1024 Sep 2 11:03 accounting
|-drwxrws--- 2 root business 1024 Sep 2 11:03 business
|-drwxrws--- 2 root hr 1024 Sep 2 11:03 hr
The various masks that were mentioned in the other post are required so that the files and folders are writable by both the user and group and the permissions bits cannot be modified by windows explorer.
If this is desired, you should set group quotas so that one department will not consume all the disk space.
Cheers.
---------
By the way, it would be helpful if you mention the outcome of the suggestions made. This will help both the person postin gand other people who may be reading this thread