Enabling system-level security allows the Web UI to accurately display users' files and
show or hide controls depending on users' permissions (this includes the
delete and
make directory
functions).
To enable system-level security, run
the following command (as root) in a Terminal window:$ sudo /Library/Aspera/sbin/enablesecure enable
Once
the script is executed, you are prompted to input the name of the Apache
user.
User running apache (default _www):
Based
on your input, the script generates text similar to the following. Use
visudoers to copy-and-paste the generated text into
your /etc/sudoers file. In the following example
output, _www is the account that is running Apache and
/Library/Aspera is the Aspera installation
directory.
Important: Do not paste the example output shown
below into your sudoers file. Paste the ouput generated
when you ran the enablesecure script as described
above.
# BEGIN Aspera Connect Server
# The user account that runs the web server will impersonate
# the logged-in user to present that user's files and folders.
Defaults env_keep += "SERVER_NAME REQUEST_URI REQUEST_METHOD REMOTE_USER QUERY_STRING CONTENT_LENGTH SESSION_ID CSRF_TOKEN"
Defaults:_www !requiretty
_www ALL=(ALL) NOPASSWD: /Library/Aspera/var/webtools/scripts/aspera-dirlist.pl,
SETENV: /Library/Aspera/var/webtools/scripts/aspera-dirlist.pl
# END Aspera Connect Server
Note:
Once secure permissions are enabled, users see the
Delete and
Create Folder
buttons, allowing then to remove files and create directories on the server
(within their docroot). To hide the
Delete and
Create Folder buttons, update the Web UI
configuration parameters
EnableDelete and
EnableCreateFolder, respectively. See
Configuring your Web UI Settings for details.
To disable the secure
permissions, run the enablesecure script again with the
argument
disable.
$ sudo /Library/Aspera/sbin/enablesecure disable