Re: group perms on /dev/pts/*

Amy Fong (uixjjji1@umail.furryterror.org)
18 May 1999 11:00:02 -0400


In article <373A2572.57071432@nwu.edu>, Evan Van Dyke <e-van@nwu.edu> wrote:
>Since 2.2.7 I've been seeing some wierd FOO with /dev/pts/*.
>I use screen, which requires +rwx permissions on /dev/pts/1,
>or which ever terminal it is currently on... however, the group
>permissions appear to now be set, by default, to _just_ +w.
>Yes, I am in group tty.... I can fix the problem by manually
>sudo chmod g+rwx /dev/pts/*
>but it's annoying... does anyone know if this is a bug? a
>feature? an automated workaround? Thanks in advance.
>
>--Evan

I'm having alot of problems with screen and /dev/pts/* as well. In
my case, I've got /dev/pts mounted to mode 620. Now from what I've observed,
in my case, screen tries to :

crw------- 1 root tty 136, 13 May 18 10:54 /dev/pts/13

it does a geteuid (root's pid) and getuid (my pid) and then it does a
setreuid(root's pid, my pid) which results in

open(pty, O_RDWR)... Permission denied

And then it restores the ruid to root and euid to me. Which is obviously
wrong.

Whatever.

(screen 3.7.6-1.1, kernel 2.3.0)

Amy

-- 
"We Suzaku Seishi aren't smart enough to give up!!!"  Tasuki (Fushigi Yuugi)

I don't speak for anyone but myself.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/