Forums

Resolved
0 votes
Hi,

I've installed the storage manager app and mapped some shared drives succesfully, but when i copy a file to the shared drive the permissions are set to 0644.
How can i set this to default 0774 or something like this.


here a snapshot of /etc/clearos/storage.d/flexshare_default.conf where permissions is set to 0755


///////////////////////////////////////////////////////////////////////////////
// D E F A U L T
///////////////////////////////////////////////////////////////////////////////

$storage['/var/flexshare/shares']['base'] = $base;
$storage['/var/flexshare/shares']['directory'] = 'flexshare/shares';
$storage['/var/flexshare/shares']['permissions'] = '0755';
$storage['/var/flexshare/shares']['owner'] = 'root';
$storage['/var/flexshare/shares']['group'] = 'root';

// vim: syntax=php
Wednesday, December 20 2017, 07:36 PM
Share this post:
Responses (3)
  • Accepted Answer

    Sunday, December 16 2018, 10:52 PM - #Permalink
    Resolved
    0 votes
    Nick Howitt wrote:

    .... Flexshare permissions are set through the webconfig in /etc/samba/flexshare.conf with the create mask. This means the execute bit is always stripped. Unfortunately if you change anything here, any time you make changes in the webconfig flexshare interface you will lose your changes.


    grr, i want the execute bit set... can this be changed in a future update of webconfig?
    The reply is currently minimized Show
  • Accepted Answer

    Friday, December 22 2017, 08:11 AM - #Permalink
    Resolved
    0 votes
    Nick Howitt wrote:

    Hi Patrick, I think the storage manager permissions are for the folder. Flexshare permissions are set through the webconfig in /etc/samba/flexshare.conf with the create mask. This means the execute bit is always stripped. Unfortunately if you change anything here, any time you make changes in the webconfig flexshare interface you will lose your changes.


    Hi Nick,

    Stupid of me. This should i know by my self. Too long nothing doen with Samba and expected that i not need to look there since it was set properly.
    obviously an update has broken the permissions.
    Should be a nice feature in the webconfig

    Thanks for the help
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, December 20 2017, 09:56 PM - #Permalink
    Resolved
    0 votes
    Hi Patrick, I think the storage manager permissions are for the folder. Flexshare permissions are set through the webconfig in /etc/samba/flexshare.conf with the create mask. This means the execute bit is always stripped. Unfortunately if you change anything here, any time you make changes in the webconfig flexshare interface you will lose your changes.
    The reply is currently minimized Show
Your Reply