Allow users to reset permissions
Migrated from: https://tracker.clearos.com/view.php?id=1732
Reported by: Dave Loper
Traditional flexshares can have problems when administrators copy in data to a flexshare with external protocols such as SSH. Additionally, some workstations do not respect the permission structure and override the group permissions making files in accessible to users.
Add a button to reset permissions on a flexshare. This will effectively perform the following two commands where flexshare is the flexshare name, and groupowner is the group specified in the UI:
chgrp -R **groupowner** /var/flexshare/shares/**flexshare**
chmod -R g+rw /var/flexshare/shares/**flexshare**
A warning can be given to remind the user that this will override any other group permissions in the folder structure.