devfs
[Top] [All Lists]

Re: [Cooker] /dev/pts/* permissions (cannot use "talk") (devfs?)

To: Cooker list <cooker@xxxxxxxxxxxxxxxxxx>
Subject: Re: [Cooker] /dev/pts/* permissions (cannot use "talk") (devfs?)
From: Borsenkow Andrej <Andrej.Borsenkow@xxxxxxxxxxxxxx>
Date: 16 Feb 2002 17:11:45 +0300
Cc: Kamil Toman <ktoman@xxxxxxxx>, devfs mailing list <devfs@xxxxxxxxxxx>
In-reply-to: <20020216004808.GA3223@sarah.kolej.mff.cuni.cz>
References: <20020216004808.GA3223@sarah.kolej.mff.cuni.cz>
Sender: owner-devfs@xxxxxxxxxxx
On ÐÐÑ, 2002-02-16 at 03:48, Martin MaÄok wrote:
> Hi,
> when I run rxvt/xterm/konsole/gnome-terminal, my pseudoterminals at
> /dev/pts/* does not own group "tty" so I cannot use
> % mesg y
> mesg: error: tty device is not owned by group `tty'
> 
> and users cannot "talk" to each other.
> 
> When I log on text console, permission for /dev/vc/* are owned by
> group tty so talk here works.
> 
> Is it problem with devfs? pam? init?
> 

Well, I am really confused here.

- permissions for console (/dev/tty*) are (most probably) set either by
mingetty or by login. Neither pam nor devfsd are responsible for them.

- Mandrake by default is using devpts so you could specify group by
adding gid=5 in /etc/fstab to /dev/pts line. You could also change modes
from default 644 if you want

- still devfs documentation tells us we should not use devpts with
devfs; and I am not sure who wins. pty.c registers /dev/pts/? with
current owner and 600 permissions; and here I have

 {pts/1}% ll /dev/pts
ÐÑÐÐÐ 0
crw--w----    1 bor      bor      136,   0 ÐÐÐ 16 16:11 0
crw-------    1 bor      bor      136,   1 ÐÐÐ 16 17:05 1
crw-------    1 bor      bor      136,   2 ÐÐÐ 16 17:03 2
crw-------    1 bor      bor      136,   3 ÐÐÐ 16 17:04 3

that looks like pts/0 got permissions from devpts and others from devfs
because default mount for devpts here is 640

- and /etc/devfsd.conf tells us we must not fiddle with /dev/pt{s,y}
permissions.

So could anybody give ultimate answer on 

- should devpts be used in presence of devfs?
- how to manage permissions of pts - i.e. why they cannot be managed by
devfsd?

-andrej


<Prev in Thread] Current Thread [Next in Thread>