Ubuntu: How to determine file in “Error opening file for reading” error



Question:

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.

  1. Is someone familiar with this specific error for aterm?
  2. 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.
  3. Other tips for determining what the issue is?


Solution:1

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.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »