lkml.org 
[lkml]   [1999]   [May]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: group perms on /dev/pts/*
Date
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/

\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.386 / U:0.136 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site