Mirfster
Doesn't know what he's talking about
- Joined
- Oct 2, 2015
- Messages
- 3,215
Sorry if this was already answered elsewhere (was having no luck with search results urls working this morning)
I'm testing out setting quotas on User Home Directories and figure that I can easily set them with something like:
Only thing is that I am not making a User's Home folder the normal way. While there will be a DataStore and Share for "Users"; it is simply a Folder created via Windows Explorer that I will set the initial rights on (FreeNAS is also the Domain Controller here).
Rights aside, I could simply putty into FreeNAS and execute the command personally. But, I will not be the only person administering this and would prefer more of an automated method.
So, is there a simple way of monitoring "Data\Users" for a new SubFolder (only 1 level deep mind you) and execute a script (perhaps something like 'OnEvent' even)?
P.S. Running FreeNAS 9.10
I'm testing out setting quotas on User Home Directories and figure that I can easily set them with something like:
Code:
zfs set userquota@"Domain\User"=50G Data/Users
Only thing is that I am not making a User's Home folder the normal way. While there will be a DataStore and Share for "Users"; it is simply a Folder created via Windows Explorer that I will set the initial rights on (FreeNAS is also the Domain Controller here).
Rights aside, I could simply putty into FreeNAS and execute the command personally. But, I will not be the only person administering this and would prefer more of an automated method.
So, is there a simple way of monitoring "Data\Users" for a new SubFolder (only 1 level deep mind you) and execute a script (perhaps something like 'OnEvent' even)?
- I know that I could simply setup a Cron Job to run often, but wanted a more intelligent solution
- Wanting this to reside on FreeNAS itself and not another box (like Windows with a PowerShell Script)
P.S. Running FreeNAS 9.10