Subject: Re: tty allocation
To: Jaromir Dolecek <email@example.com>
From: Piotr Stolc <firstname.lastname@example.org>
Date: 04/26/2002 12:53:27
On Fri, Apr 26, 2002 at 12:23:44PM +0200, Jaromir Dolecek wrote:
> 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.
It requires root priviledges, and I want to do it as an unpriviledged user,
for example under screen without suid flag set.
I've just checked the behaviour of Linux with /dev/pts - it creates new nodes
owned by requesting user.