Name

setgroupperms — set group permissions to allow both command line and web management of sets.

Synopsis

use Wacs;
setgroupperms(...); 
 

Parameters

parameterdescription
targetpathname of the file or directory to update
groupthe unix group to set permissions to (usually wacs, can be obtained with conf_get_attr on security -> admingroup.
modeaccess mode that should be set - typically ug+rwX.

Summary

The setgroupperms function sets the group permissions on the specified file to allow updating by both command line tools and the web interface. This is typically done by making all files group-writeable to the wacs group of which both apache and the approved WACS administrative users should be members.

Availability

setgroupperms is available only in perl as it is used only for collection management tasks.