Informix Error -817: Cannot read file (check file permissions).
Cause and resolution
Cannot read file (check file permissions).
The file that is specified in the prior command cannot be read. Probably your account does not have operating-system permission to read the file. Check the permissions, and run the program again.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-817 is the mirror image of -816: it fires when a file named in a preceding command can't be read — per the official guidance, an OS-level read-permission problem is the likely cause.
- No OS-level read permission on the file, per the official guidance — the direct, likely cause.
- The file owned by a different OS user, with no group/other permission bit granting read access to the connecting account.
Solutions / Resolution
- Check the file's permissions, per the official guidance:
ls -l the_file - Correct the permissions or ownership as needed.
- Run the program again, per the official guidance, once permissions are corrected.
Examples
Checking permissions
$ ls -l the_file
-rw------- 1 otheruser othergroup ... the_file
A file readable only by its owner (a different user) explains the failure.
Diagnostic Checks
- Check the target file's permissions and ownership against the connecting OS account.
Related Errors / Related Topics
- -816 — "Cannot write file (check file permissions)." The mirror-image error, for a write permission problem rather than read.
The mirror image of -816 — check the file's permissions and ownership for read access.