omcheck not working with add-ons (sets wrong permissions?)

Discuss Scalix Management Services ( formerly Scalix Admin Console )

Moderator: ScalixSupport

elliot01
Posts: 55
Joined: Wed May 06, 2009 6:35 am
Location: West Midlands, England

omcheck not working with add-ons (sets wrong permissions?)

Postby elliot01 » Wed Jul 22, 2009 8:15 am

Scalix 11.4.4.4904 (all latest community-available patches)
CentOS 5.3 (all latest updates)

Hi,

Installed 'addfwd.sh' add-on.

Logged in as 'sxadmin', and clicked 'Plugins' but received the following error:
Could not retrieve list of plugins

Assuming it was a privilege/permission problem, I ran omcheck, which wanted to perform the following:

#Now checking Mailstore files OM-SDIRSFILES
# Filename: /var/opt/scalix/m1/s/plugin/addfwd.sh ( Scalix OM-SDIRSFILES )
# Gid is 0 (root) should be 104 (scalix)
chgrp scalix /var/opt/scalix/m1/s/plugin/addfwd.sh
# Mode is 700 (-rwx------) should be 660 (-rw-rw----)
chmod 660 /var/opt/scalix/m1/s/plugin/addfwd.sh
# Filename: /var/opt/scalix/m1/s/plugin/addfwd.sh ( Scalix OM-SDIRSFILES )
# Gid is 0 (root) should be 104 (scalix)
chgrp scalix /var/opt/scalix/m1/s/plugin/addfwd.sh
# Mode is 700 (-rwx------) should be 660 (-rw-rw----)
chmod 660 /var/opt/scalix/m1/s/plugin/addfwd.sh


Firstly, can someone explain why this installed incorrectly in the first place?
I installed the plugin using the command:

Code: Select all

sxcfgplugin.py --deploy -l addfwd.sh -u sxadmin -i mail1


So, anyway, I ran the omcheck script, and now when I log back into the SAC, I can see the plugin listed, BUT when I click on it, I get the error:
Could not retrieve the plugin's information

Any ideas?
CentOS v5.3, Scalix v11.4.6 Community Edition, 300+ users

elliot01
Posts: 55
Joined: Wed May 06, 2009 6:35 am
Location: West Midlands, England

Re: omcheck not working with add-ons (sets wrong permissions?)

Postby elliot01 » Wed Jul 22, 2009 8:44 am

I have now found that making the addon executable, manually, fixes the issue:

Code: Select all

chmod 760 /var/opt/scalix/m1/s/plugin/addfwd.sh


Leaving my file looking as so:

Code: Select all

[root@mail1 plugin]# ls -lha
total 12K
drwxrwxr-x  2 scalix scalix 4.0K Jul 22 13:36 .
drwxrwxr-x 54 scalix scalix 4.0K Jul 22 13:28 ..
-rwxrw----  1 root   scalix 1.5K Jul 22 13:36 addfwd.sh


Of course though, this means that any future use of 'omcheck' will break the add-on again :?

Is this an unknown bug or am I missing something? :?:

Thanks for any input.
CentOS v5.3, Scalix v11.4.6 Community Edition, 300+ users


Return to “Scalix Management Services”



Who is online

Users browsing this forum: No registered users and 2 guests