RE: [Alug] Can't start Gnome-terminal with non-root user.
From: xs@kittenz.org [mailto:xs@kittenz.org] on Friday, August 09, 2002 11:09 AM
on Fri, Aug 09, 2002 at 11:07:34AM +0100, Keith Watson wrote:
Most things are working except for Gnome-terminal.
It starts fine for root but crashes with a message about changes to the 2.2.x kernel and checking ptys.
Under unices that lack a /dev/ptmx-like system of psuedo-terminal allocation, generally root privileges are needed to fully acquire a pty (because it must chown and chmod the tty device.) You may want to check you have support for unix98 ptys in your kernel and a /dev/ptmx. This also requires glibc>=2.1. I guess if you are using devfs this should not be an issue..
I think you've put your finger on the hole in my set-up, I've just popped over to Richard Gooch's site and read the Devfs FAQ <http://www.atnf.csiro.au/~rgooch/linux/docs/devfs.html>. I think I need to regen the kernel with devfs support and implement devfs. Thanks! Keith ____________ Where does a wise man look for pebbles? On a beach. Where does the wise man hide a leaf? In a forest. G.K. Chesterton
On Fri, Aug 09, 2002 at 12:50:53PM +0100, Keith Watson wrote:
chown and chmod the tty device.) You may want to check you have support for unix98 ptys in your kernel and a /dev/ptmx. This also requires glibc>=2.1. I guess if you are using devfs this should not be an issue..
I think you've put your finger on the hole in my set-up, I've just popped over to Richard Gooch's site and read the Devfs FAQ <http://www.atnf.csiro.au/~rgooch/linux/docs/devfs.html>. I think I need to regen the kernel with devfs support and implement devfs. Thanks!
If something like this happens again, try strace. "strace gnome-terminal" will execute gnome-terminal and print out all of the system calls it makes. If you collect these into a file you should be able to find any problem with permissions by searching for calls which fail (such as open()ing a device getting "permission denied"). -- pkl.net/~trj ..::::::::::::::::::::::::::::::::::::::::::::::::. /\_./o__ ....:::::::::' I am Homer of Borg. Prepare to be ':::: (/^/(_^~' ''::::: assim... mmmm, donuts. :::: ___.(_.)____ ':::::::::::::::::::::::::::::::::::::::::::::::::::
On Fri, Aug 09, 2002 at 12:50:53PM +0100, Keith Watson wrote:
chown and chmod the tty device.) You may want to check you have support for unix98 ptys in your kernel and a /dev/ptmx. This also requires glibc>=2.1. I guess if you are using devfs this should not be an issue..
I think you've put your finger on the hole in my set-up, I've just popped over to Richard Gooch's site and read the Devfs FAQ <http://www.atnf.csiro.au/~rgooch/linux/docs/devfs.html>. I think I need to regen the kernel with devfs support and implement devfs. Thanks!
If something like this happens again, try strace.
"strace gnome-terminal" will execute gnome-terminal and print out all of the system calls it makes. If you collect these into a file you should be able to find any problem with permissions by searching for calls which fail (such as open()ing a device getting "permission denied").
OK, thanks for the tip. :o) Keith ____________ 'I always use the word impossible with the greatest caution.' - Wernher Von Braun
participants (2)
-
Keith Watson -
Toby Jaffey