On 10 Jan 2003 23:59:53 -0500, Dan Espen wrote:
>
> Louis LeBlanc <fvwm_at_keyslapper.org> writes:
> > On 01/10/03 11:20 PM, Dan Espen sat at the `puter and typed:
> > > Louis LeBlanc <fvwm_at_keyslapper.org> writes:
> > > > On 01/10/03 12:56 PM, Dan Espen sat at the `puter and typed:
> > > > > Louis LeBlanc <fvwm_at_keyslapper.org> writes:
> > > The permission denied message is an indication of a problem,
> > > it shouldn't be happening. I don't know exactly what it is.
> > >
> > > I guess I'd first look at the permissions on the files.
> > > All of them. Then run "file" on each. Then run the whole
> > > thing under strace:
> > >
> > > strace -f /bin/sh /usr/X11R6/bin/xterm 2>/tmp/strace.out
This is incorrect command, the correct one is:
strace -f /bin/sh -c /usr/X11R6/bin/xterm
The one without "-c" will try to execute a file as a shell script
instead of binary, so it should read it first, for binary read permission
are not needed, just executable permissions.
> > > Then look in /tmp/strace.out for whats causing the permission
> > > denied.
> >
> > -bash-2.05b$ strace -f /bin/sh /usr/X11R6/bin/xterm 2>/tmp/strace.out
> > -bash-2.05b$ cat /tmp/strace.out
> > execve("/bin/sh", ["/bin/sh", "/usr/X11R6/bin/xterm"], [/* 19 vars */]) = 0
> ...
> > open("/usr/X11R6/bin/xterm", O_RDONLY) = -1 EACCES (Permission denied)
> > break(0x80c3000) = 0
> > write(2, "/usr/X11R6/bin/xterm: Can\'t open"..., 73/usr/X11R6/bin/xterm: Can'
> > t open /usr/X11R6/bin/xterm: Permission denied) = 73
> > exit(2) = ?
> > -bash-2.05b$
> >
> > I'm afraid I don't really understand this. It seems to say it can't
> > open /usr/X11R6/bin/xterm in the write call, but that should be the
> > case anyway. I shouldn't be able to write to the file itself. One
> > thing that could be a problem is that the xterm executable is not
> > readable, only executable:
> >
> > bash-2.05b$ ls -l /usr/X11R6/bin/xterm
> > -rws--x--x 1 root wheel 226568 Jan 10 09:19 /usr/X11R6/bin/xterm*
>
> You're reading the strace wrong. Its not writing, it
> is trying to open the file for read.
>
> The permissions don't allow read.
>
> As root run the following command:
>
> chmod a+r /usr/X11R6/bin/xterm
>
> Then you should be back in business.
I don't think so, there will be another error message then if
you try "sh xterm" without -c.
I would think the original problem is in bash.
Regards,
Mikhael.
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Sat Jan 11 2003 - 00:47:42 GMT