Change the permissions by default on a folder created through Connect Web UI

Description

When a new folder is created via the New Folder button in the Connect Server web interface, the default permissions on the folder are 755. You can change the permissions that folders created this way take on by modifying the aspera-dirlist.pl file.

Instructions

1. Open the following file in a text editor:

  • /opt/aspera/var/webtools/scripts/aspera-dirlist.pl

2. Find the sub create_folder section and set the umask as demonstrated below:

sub create_folder { 
umask 077; 
my $folderName = $cgi->url_param("folder_name"); 
my $err = "";

The umask applies the same as a UNIX umask, so in this example it will create folders with permissions 700.

Have more questions? Submit a request

0 Comments

Article is closed for comments.
Powered by Zendesk