IBM Support

The file access permissions do not allow the specified action.

Troubleshooting


Problem

Creating new instance with db2icrt command, may fail with the file access permissions do not allow the specified action error.

Symptom

Following error may be throw in this case

$ ./db2icrt -u db2inst2 db2inst2
The file access permissions do not allow the specified action.
ksh: /dev/null: 0403-005 Cannot create the specified file.
cat: cannot open /tmp/db2icrt.tmp1.647654
DBI1281E The database manager configuration file could not be initialized.

Cause

Either /dev/null or /tmp doesn't have the required permissions.

Diagnosing The Problem

Check the permissions on /dev/null or /tmp using below command

For Example : # ls -ld /dev/null

Resolving The Problem

Provide 1777 permission to /tmp and crw-rw-rw- (0666) to /dev/null to resolve this issue.

For Example :

$ ls -ld /dev/null
crw-rw-rw- 1 root system 2, 2 Oct 20 08:16 /dev/null

$ ls -ld /tmp
-rwxrwxrwx 1 root system 2, 2 Oct 20 08:16 /tmp

Related Information

[{"Product":{"code":"SSEPGG","label":"Db2 for Linux, UNIX and Windows"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":"Install\/Migrate\/Upgrade - Instance","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"9.7;9.5;10.1;10.5;11.1","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
16 June 2018

UID

swg21598091