[KLUG Members] Talk

Jeremy Leonard members@kalamazoolinux.org
Thu, 29 May 2003 09:13:12 -0400 (EDT)


On Wed, 28 May 2003, Peter Buxton wrote:

> On Wed, May 28, 2003 at 08:10:22AM -0400, Jeremy Leonard was only escaped
>    alone to tell thee:
> 
> > I tried starting it from the bash prompt. The server daemon I mean.
> > /usr/sbin/in.talkd
> 
> Did you do it as root? Do you run the client as root? Do `ls -l` on the
> tty (/dev/tty1 or /dev/ptysomething) for the permissions.

[jeremy@elite jeremy]$ ls -l /dev/pts
crw-------    1 valm     tty      136,   0 May 29 08:59 0
crw--w----    1 jeremy   tty      136,   1 May 29 09:00 1
[jeremy@elite jeremy]$ ls -l /dev/tty
crw-rw-rw-    1 root     root       5,   0 May 28 08:47 /dev/tty

> Does the syslog say anything interesting after you try the client?

Nope nothing. :(
 
> With xinetd listening on talk port, do `strace -o file.st talk`.
> 
> > service talk
> > {
> >         disable = no
> >         socket_type             = dgram
> >         wait                    = yes
> >         user                    = nobody
> >         group                   = tty
> >         server                  = /usr/sbin/in.talkd
> > }
> 
> If it doesn't work, try:
> 
>   server = /usr/bin/strace -o /tmp/file.st /usr/sbin/in.talkd
> 

strace doesn't exist on my server

> I'm betting it is a permission error. See:
> 
> /tmp/.X11-unix:
> total 0
> srwxrwxrwx    1 root     root            0 May 27 07:53 X0

I don't have /tmp/.X11-unix

> 
> That file, /tmp/.X11-unix/X0, is a Unix filesystem domain socket. It
> behaves almost exactly the same way as an Internet IP address domain
> socket on localhost: it is the name of an IP socket that never leaves
> your machine, only instead of 127.0.0.1:25, say, its address is
> /tmp/.X11-unix/X0.
> 
> Access to a Unix domain socket is governed by standard file permissions.
> (So too with ttys.) I think your permissions are screwed up.
> 
>