Subject: Re: tty allocation
To: Piotr Stolc <>
From: Jaromir Dolecek <>
List: tech-kern
Date: 04/26/2002 12:23:44
AFAIK Unix98 pty interface doesn't set the owner of the terminal
either. What's wrong with doing chown() yourself? Tha't precisely
what getty does AFAIK.


Piotr Stolc wrote:
> On Thu, Apr 25, 2002 at 11:37:18PM +0200, Hubert Feyrer wrote:
> > > I am looking for a mechanism that allows an unpriviledged process to
> > > allocate the terminal. Linux has support for /dev/ptmx (PTY98) which can do
> > > what I am looking for. Does NetBSD have similar or alternative mechanism?
> > > Or maybe there are plans for it?
> > I'm not sure if it's what you want, but maybe openpty(3) can help?
> No, it won't change the owner of terminal.
> Well, I will plan and write a simple hack for this in a module. I think this
> will be enough for my current needs.
> -- 
> brain defragmentation in progress

Jaromir Dolecek <>
It is better never to have been born.  But who among us has such luck?
One in a million, perhaps.