Default Permission On $DATAROOT/install/VERSION Results In Error: Cannot open /opt/sun/comms/messaging64/data/install/VERSION When Running Start-msg
Last updated on DECEMBER 12, 2017
Applies to:Oracle Communications Messaging Server - Version 7.0.5 and later
Information in this document applies to any platform.
Using: Oracle Communications Messaging Server 22.214.171.124.20171018 64bit (built Oct 18 2017)
On a new system that was just installed, when trying to run start-msg as the "imsadmin" userid (we use imsadmin; the default is "mailsrv"), we get this output of failure:
It does eventually succeed in starting imapd, however the root cause is the permissions of 0640 on the VERSION file owned by root:
$ ls -l /opt/sun/comms/messaging64/data
lrwxrwxrwx 1 root root 17 Nov 7 14:18 /opt/sun/comms/messaging64/data -> /<install>/mail/msg
$ ls -l /opt/sun/comms/messaging64/data/install/VERSION
-rw-r----- 1 root root 258 Nov 7 14:20 /opt/sun/comms/messaging64/data/install/VERSION
RBAC is configured, so we should be able to stop/start anything other than watcher as the imsadmin userid.
The only failure is that updateCfgVersion was unable to determine if it needed to do anything.
System default usually has a umask of 022, but if the umask is set to 027 (like in this case), when updateCfgVersion "updates" the VERSION file, then the new VERSION file will be 0640 and not readable by the non-privileged messaging server userid which results in that non-privileged getting these bizarre errors when running start-msg.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms