SYSTEM WARNING: 'file_get_contents(https://www.clearos.com/?rendertype=json&get=header): failed to open stream: Connection refused' in '/var/www/virtual/newwrapper/cf_topmenu.inc' line 5

ClearOS Bug Tracker


View Revisions: Issue #1731 All Revisions ] Back to Issue ]
Summary 0001731: Allow users to request setGID bit.
Revision 2014-06-02 10:55 by user2
Description 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.

A checkbox should be added to all the admin to set the setGID bit for a flexshare and any underlying folders. This will enforce group ownership and read/write permissions. This should be checked by default on any new flexshare! This command will do the following:

(This should only be done if the checkbox changes state)
chmod -R g+s /var/flexshare/shares/**flexshare**

Unchecking the box will perform:

(This should only be done if the checkbox changes state)
chmod -R g-s /var/flexshare/shares/**flexshare**
Revision 2014-06-02 09:35 by dloper
Description 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. Two features can be added to mitigate issues with this:

1) 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.

2) A checkbox should be added to all the admin to set the setGID bit for a flexshare and any underlying folders. This will enforce group ownership and read/write permissions. This should be checked by default on any new flexshare! This command will do the following:

(This should only be done if the checkbox changes state)
chmod -R g+s /var/flexshare/shares/**flexshare**

Unchecking the box will perform:

(This should only be done if the checkbox changes state)
chmod -R g-s /var/flexshare/shares/**flexshare**


SYSTEM WARNING: 'file_get_contents(https://www.clearos.com/?rendertype=json&get=footer): failed to open stream: Connection refused' in '/var/www/virtual/newwrapper/cf_footer.inc' line 7