Q:

How to determine file in "Error opening file for reading" error

Since Ubuntu 12.04, whenever I open aterm, I get the following error message:
Error opening file for reading: Permission denied

aterm still opens and runs correctly, but I get that error message. I'd like to figure out what all this is about.

Is someone familiar with this specific error for aterm?
Otherwise, is there some log that records files that are attempting to be opened so I can determine what file it's complaining about? I've grepped my log files for "aterm" without success.
Other tips for determining what the issue is?

A:

If it were me I would most likely use strace, as in:
$ strace aterm

That will print out all the system calls that aterm issues. It will be quite a lot of information. You may wish to limit it to just the open() system call like so:
$ strace -etrace=open aterm

though I suppose it is possible that this isn't the result of an open() syscall.

