Roundcube Community Forum

Third Party Contributions => API Based Plugins => Topic started by: terryit3 on February 03, 2015, 01:51:43 PM

Title: Can't set Global Address Book plugin to read-only
Post by: terryit3 on February 03, 2015, 01:51:43 PM
Regarding the gab plugin from http://plugins.roundcube.net/packages/johndoh/globaladdressbook

I am running the 1.0.5 version of RoundCube and the latest version of the globaladdressbook plugin, and cannot get read-only to stick.

I have renamed the config file to config.inc.php and set the option in the config file to read-only, but anyone is still allowed to make changes to it.

I'm not sure where to go from here.. Any help would be appreciated.

Title: Re: Can't set Global Address Book plugin to read-only
Post by: JohnDoh on February 04, 2015, 02:45:54 AM
Please check that your config file is in [rc root]/plugins/globaladdressbook/config.inc.php, that the user PHP runs as has permission to read it and please post the `$config['globaladdressbook_perms']` line from it.

Also please try another setting, for example enable groups and see if that shows up in the UI.
Title: Re: Can't set Global Address Book plugin to read-only
Post by: terryit3 on February 04, 2015, 08:56:08 AM
My www-data user had 644 permission to the config file, but I opened it up to 777 (temporarily) to test it, and it's still remains writeable by all users.

I also enabled groups, and didn't see it appear anywhere.

$config['globaladdressbook_perms'] = 0;

I am using the MyRoundCube Plugin manager if that matters.

I have the globaladdressbook plugin working correctly on our production email server right now, and have mirrored the permissions, file owners, etc, and still can't get it. Edit: Production mail server runs Apache. New dev server runs Nginx.

Thanks for your help
Title: Re: Can't set Global Address Book plugin to read-only
Post by: terryit3 on February 04, 2015, 09:04:47 AM
Found that my plugins folder was owned by my admin user, so I changed it to www-data and all is well now.

Thanks for your assistance. The plugin is great!