Agnus Dei (jackal) wrote in linux,
Agnus Dei
jackal
linux

Ubuntu aterm "Error opening file for reading: Permission denied"

Fresh install of Ubuntu 12.04.

When I run aterm I get "Error opening file for reading: Permission denied"

ballison@ubuntu:~$ aterm
Error opening file for reading: Permission denied


When I run aterm under strace looking at only "open" system calls I get:

ballison@ubuntu:~$ strace -etrace=open aterm 2>&1 |grep "No such file"
open("/usr/share/X11/XKeysymDB", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/ballison/.icons/default/cursors/xterm", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/ballison/.icons/default/index.theme", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/icons/default/cursors/xterm", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/pixmaps/default/cursors/xterm", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/ballison/.icons/DMZ-White/cursors/xterm", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/ballison/.icons/DMZ-White/index.theme", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/ballison/.icons/default/cursors/left_ptr", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/ballison/.icons/default/index.theme", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/icons/default/cursors/left_ptr", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/pixmaps/default/cursors/left_ptr", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/ballison/.icons/DMZ-White/cursors/left_ptr", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/ballison/.icons/DMZ-White/index.theme", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/ballison/.XCompose", O_RDONLY) = -1 ENOENT (No such file or directory)
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your IP address will be recorded 

  • 2 comments
Try this?

Exactly what I was looking for! Looks like it's /var/run/utmp and /var/log/wtmp that were giving the issues. Now I have something more to go on. Thanks! – Mark Hildreth Jul 4 '12 at 18:15

Glad you found it. Terminal programs often have an option to disable the "add me to wtmp/utmp file" because (as you've found) that operation usually requires root access, so would need the program to be setuid. – grifferz Jul 4 '12 at 21:51
Yes I read that when I was researching the problem, but it didn't help me come up with a solution.

I finally gave it... I'm using gnome-terminal now. Gnome has finally defeated me. :)