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
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21598091