Using asconfigurator to edit aspera.conf user and group configuration

Description

Learning the proper asconfigurator arguments can be difficult. Here are a few common examples of using asuserdata to edit users and groups.

Add a user or group with a docroot or edit a docroot

The follow examples show how to add a user or group with the docroot /data/xfer. These same commands can be used to change a users docroot by using an existing user or group name. Replace xfer with the group or user name to be added and /data/xfer with the docroot. 

  For users:

asconfigurator -x "set_user_data;user_name,xfer;absolute,/data/xfer"

For groups:

asconfigurator -x "set_group_data;group_name,xfergroup;absolute,/data/xfer"

Configure read,write, and browse permissions on a docroot

The following examples allow you to change the read, write, and browse permissions on the docroot for that user or group. Replace <value1> with the user or group name, <value2> with docroot path, <value3> with true or false. 

  For users:

asconfigurator -x "set_user_data;user_name,<value1>;docroot_mask,<value2>;read_allowed,<value3>"
asconfigurator -x "set_user_data;user_name,<value1>;docroot_mask,<value2>;write_allowed,<value3>"
asconfigurator -x "set_user_data;user_name,<value1>;docroot_mask,<value2>;browse_allowed,<value3>"

For groups:

asconfigurator -x "set_group_data;user_name,<value1>;docroot_mask,<value2>;read_allowed,<value3>"
asconfigurator -x "set_group_data;user_name,<value1>;docroot_mask,<value2>;write_allowed,<value3>"
asconfigurator -x "set_group_data;user_name,<value1>;docroot_mask,<value2>;browse_allowed,<value3>"

Set an incoming and outgoing default target rate for a user or group

The following commands will set incoming or outgoing target rates for a user. Replace <value1> with the user or group name, <value2> with the outbound target rate, and <value3> with the target rate.

asconfigurator -x "set_user_data;user_name,<value1>;transfer_out_bandwidth_flow_target_rate_default,<value2>;transfer_in_bandwidth_flow_target_rate_default,<value3>"
asconfigurator -x "set_group_data;group_name,<value1>;transfer_out_bandwidth_flow_target_rate_default,<value2>;transfer_in_bandwidth_flow_target_rate_default,<value3>"

Set an incoming and outgoing target rate cap for a user or group

The following commands will set incoming or outgoing target rate caps for a user. Replace <value1> with the user or group name, <value2> with the outbound target rate, and <value3> with the inbound target rate

asconfigurator -x "set_user_data;user_name,<value1>;transfer_out_bandwidth_flow_target_rate_cap,<value2>;transfer_in_bandwidth_flow_target_rate_cap,<value3>"
asconfigurator -x "set_group_data;group_name,<value1>;transfer_out_bandwidth_flow_target_rate_cap,<value2>;transfer_in_bandwidth_flow_target_rate_cap,<value3>"

 

 

 

 

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk