Comment 0 for bug 853750

Revision history for this message
Numérigraphe (numerigraphe) wrote : Wrong owner on symlink make administrative instance fail to start

On db2exc 9.7.4-0lucid3, the init script tries to start the administration instance by:
- su-ing to the admin instance user
- calling "db2admin", which is in ~/das/bin/db2admin, which is in the PATH
This fails with the message "-su: das/bin/db2admin: Permission denied".
Calling /opt/ibm/db2/V9.7/das/bin/db2admin does not fail.
My guess is that it's because:
- ~/das/bin is a symbolic link owned by root
- but ~/das has the sticky bit, so only root can follow the symbolic link
Possible fixes :
- install the symbolic link with the instance admin user as owner
- OR calling /opt/ibm/db2/V9.7/das/bin/db2admin in the init script
- OR adding /opt/ibm/db2/V9.7/das/bin/db2admin to the PATH for the admin instance user
Lionel Sausin