Search code examples
shelldockerdb2ibm-mqmq

DB2+MQ, cannot create db2mq.tmp: Permission denied... but /tmp has my user


I want create a trigger (in my database DB2) sending message to queue.
I use dockerfile to create build with IBM MQ, IBM DB2express-c and IBM IIB.
After I used command enable_MQFunctions (It creates DB2MQ tables+configuration) I got:

sh: 1: cannot create db2mq.tmp: Permission denied

Using command chown I gave my user permission to /tmp and var/tmp but no possitive effect after, but mu user is listed (drwxrwxrwt) after I type ls -ld tmp command.
Still my user can't chmod 775 -R /tmp -> Operation not permitted


Solution

  • Resolved by adding forced permission chmod -R 1777 (it's nooby way)