Default Permission on $Dataroot/Install/Version Results in Error: 'Cannot open /opt/sun/comms/messaging64/data/install/VERSION' When Running start-msg
(Doc ID 2326798.1)
Last updated on MARCH 31, 2022
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 220.127.116.11.20171018 64bit (built Oct 18 2017)
On a new system that was just installed, when trying to run start-msg as a non default user (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.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document