Share Management Rake Tasks

The following rake tasks cover how to create, modify, and delete a share and how to manage a user or group's share permissions.
Tip: Square brackets in usage statements denote optional arguments and need not be included when running the commands.

Create Share

Command Usage
Syntax
rake data:share:create -- --node_name <node_name> --share_name <share_name> --directory <directory>
Example
rake data:share:create -- --node_name aspera --share_name share1 --directory /mnt

Delete Share

Command Usage
Syntax
rake data:share:delete -- --share_name <share_name>
Example
rake data:share:delete -- --share_name share1

Modify Share

Note: Same syntax as create share. Change the values as needed to modify the attributes of a share with the specified name.
Command Usage
Syntax
rake data:share:create -- --node_name <node_name> --share_name <share_name> --directory <directory>
Example
rake data:share:create -- --node_name aspera --share_name share1 --directory /mnt

Manage User's Share Permissions

Command Usage
Syntax
rake data:user:share_permissions -- --username <username> --share_name <share_name> 
  [--<INSERT DESIRED PERMISSION> <true or false> --<INSERT DESIRED PERMISSION> <true or false> ...]
Where valid permissions are:
  • browse_permission
  • download_permission
  • upload_permission
  • mkdir_permission
  • delete_permission
  • rename_permission
  • content_availability_permission
  • manage_permission
Example
rake data:user:share_permissions -- --username users --share_name share1 
--upload_permission true  --mkdir_permission true

Manage Group's Share Permissions

Command Usage
Syntax
rake data:group:share_permissions -- --group_name <group_name> --share_name <share_name> 
  [--<INSERT DESIRED PERMISSION> <true or false> --<INSERT DESIRED PERMISSION> <true or false> ...]
Where valid permissions are:
  • browse_permission
  • download_permission
  • upload_permission
  • mkdir_permission
  • delete_permission
  • rename_permission
  • content_availability_permission
  • manage_permission
Example
rake data:group:share_permissions -- --groupname users --share_name share1 
  --upload_permission true  --mkdir_permission true