Announcement

Collapse
No announcement yet.

Error reading ldapauth.conf - Default Bad permissions

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error reading ldapauth.conf - Default Bad permissions

    Hello,

    I installed OX Community 6.18 with the Mysql database separated from OX Server and using LDAP authentication in a CentOS 5 machine.

    Just after install and start open-xchange-groupware service I get the following error in open-xchange.log

    That's because the default permission for the file ldapauth.properties seem to be not fine (look below).

    Code:
    ==> open-xchange.log.0 <==
    SEVERE: /opt/open-xchange/etc/groupware/ldapauth.properties (Permission denied)
    java.io.FileNotFoundException: /opt/open-xchange/etc/groupware/ldapauth.properties (Permission denied)
    	at java.io.FileInputStream.open(Native Method)
    	at java.io.FileInputStream.<init>(FileInputStream.java:106)
    	at com.openexchange.config.internal.ConfigurationImpl.loadProperties(ConfigurationImpl.java:198)
    	at com.openexchange.config.internal.ConfigurationImpl.processPropertiesFile(ConfigurationImpl.java:170)
    	at com.openexchange.config.internal.ConfigurationImpl.processDirectory(ConfigurationImpl.java:163)
    	at com.openexchange.config.internal.ConfigurationImpl.<init>(ConfigurationImpl.java:149)
    	at com.openexchange.config.internal.ConfigurationImpl.<init>(ConfigurationImpl.java:111)
    	at com.openexchange.config.osgi.ConfigActivator.start(ConfigActivator.java:80)
    	at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:999)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:993)
    	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:974)
    	at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
    	at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:350)
    	at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1118)
    	at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:634)
    	at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:508)
    	at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:282)
    	at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:468)
    	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:195)
    	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:297)
    As can be seen, ldapauth.properties is owned by root and group root and cannot be read for the rest of the world:

    Code:
    # ls -l groupware/ldapauth.properties 
    -rw-r----- 1 root root 1872 Dec 10 16:33 groupware/ldapauth.properties
    I think this is a problem isn't it? and can be solved or setting read permission to the rest (chmod o+r ldapauth.properties) or assigning this file to open-xchange group (chown rootpen-xchange ldapauth.properties)

    Anyway the permissions should be set for the installer.

    Is this a bug??
Working...
X