Skip navigation

non root installations should not require write permissions to /etc

score 130
You have not voted. Product Team Review

Our customer recently installed Atrium Integrator Server 9.0 on their RHEL 6.6 box and the installation succeeded but with following severe error in the logs:

PROGRESS EVENT {Description=[installCompletion.installCompletion.description],Progress=[60],Detail=[installCompletion.installCompletion.setProductHome]}

(May 12 2015 10:25:06.290 AM +0200),WARNING,com.bmc.install.configuration.unix.ProfileConfigurationFile,

  LOG EVENT {Description=[IOException occurred while writing to file],Detail=[/etc/profile]}

(May 12 2015 10:25:06.291 AM +0200),SEVERE,com.bmc.install.task.InstallationTask,

  THROWABLE EVENT {Description=[Failed to set product home],Detail=[/opt/bmc/atriumintegrator]},

  Throwable=[java.io.FileNotFoundException: /etc/profile (Permission denied)

  java.io.FileOutputStream.open(Native Method)

  java.io.FileOutputStream.<init>(FileOutputStream.java:221)

  java.io.FileOutputStream.<init>(FileOutputStream.java:171)

  com.bmc.install.configuration.unix.ProfileConfigurationFile.writeLines(ProfileConfigurationFile.java:837)

  com.bmc.install.configuration.unix.ProfileConfigurationFile.appendLine(ProfileConfigurationFile.java:918)

  com.bmc.install.configuration.unix.ProfileConfigurationFile.writeBMCProfile(ProfileConfigurationFile.java:277)

  com.bmc.install.utility.platform.unix.UnixEnvironmentVariableHelperImpl.setEnvironmentVariableBash(UnixEnvironmentVariableHelperImpl.java:931)

  com.bmc.install.utility.platform.unix.UnixEnvironmentVariableHelperImpl.setEnvironmentVariable(UnixEnvironmentVariableHelperImpl.java:183)

  com.bmc.install.utility.platform.EnvironmentVariableHelper.setEnvironmentVariable(EnvironmentVariableHelper.java:96)

  com.bmc.install.task.InstallationTask.setProductHome(InstallationTask.java:1026)

  com.bmc.install.product.base.installer.InstallCompletionInstallationTask.execute(InstallCompletionInstallationTask.java:102)

  com.bmc.install.task.InstallationTask.run(InstallationTask.java:93)

  java.lang.Thread.run(Thread.java:745)]

 

According to

https://docs.bmc.com/docs/display/public/brid90/Preparing+a+Linux+environmen

for a non root installation write access for the files is needed and in this case these were missing.

 

It is unusual that applications needs write permissions to the files listed in the documentation when they can use the local profile in the home directory.

Hence the idea is, to modify the installer/installation in a way, that the listed write permissions are not required.

Comments

Vote history