I need to create a specific folder hierarchy within a shared folder. In each level of the hierarchy I need to set specific permissions that are not always inherited from the parent folder.
The same structure needs to be created on regular basis. The only difference will be the name of the root folder.
Is there a way in UCS to create such a folder hierarchy by script?
Or can I maybe set up a folder structure as a template and replicated it?
there are several ways to do this. Apart from UCS-mechanics this sounds like you could write a (relatively simple) shell script based on mkdir and chown.
The important question is when and how you want it to be executed:
(Semi) automatically based on certain conditions or triggers
Manually with the root-folder name as input
If you want it the be run by itself, UCS offers different mechanisms. Could you explain your Use Case?
I don’t need the folders to be created by some trigger. Running a shell script manually will do the job. But I’m not aware how to set the permissions on the folders and sub-folders. Can I use the groups that are defined in the AD and just set them on the folders?
I mad a simple picture of the structure that I need to create:
All folders are pre-defined and should not be editable. For each new customer the same structure shall be created. The groups (management, sales, production) exist in the AD. How do I set these group permissions within the script?