peconi
Cadet
- Joined
- Feb 1, 2012
- Messages
- 8
I would like to write some scripts (php/python) that would log into the FreeNas via SSH and issue commands to:
- Create new users/groups
- Create new ZFS Datasets
- Create new CIFS/NFS Shares to these Datasets
- Assign the newly created users/groups to Datasets/Shares
Does anyone know where I could find the info on CLI commands to do this?
Would I also have to be hacking the FreeNas DB in /data folder - or could all this be done simply via CLI. Would definitely like to keep the Gui in sync.
THANKS!
- Create new users/groups
- Create new ZFS Datasets
- Create new CIFS/NFS Shares to these Datasets
- Assign the newly created users/groups to Datasets/Shares
Does anyone know where I could find the info on CLI commands to do this?
Would I also have to be hacking the FreeNas DB in /data folder - or could all this be done simply via CLI. Would definitely like to keep the Gui in sync.
THANKS!