https://bugzilla.wikimedia.org/show_bug.cgi?id=50248

--- Comment #5 from Marc A. Pelletier <[email protected]> ---
I can't tell; I don't have a MMP on the toolserver, and a cursory inspection of
nightshade shows that screen isn't suid to root, which means that it should not
be possible for it to open the tty when invoked from a sudo-ed user:

crw--w---- 1 marc tty 136, 31 Sep  5 04:39 /dev/pts/31

Whereas:

-rwxr-sr-x 1 root utmp 364088 Jul 29  2009 /usr/bin/screen

meaning that screen runs with the privileges of the invoking user, who would
not have permission to open the terminal.  Can you switch to an MMP account and
do a "ls -l `tty`" to see if something funky is going on with the terminal's
permissions?  That might give me a hint.

The hack with script is exactly that -- a hack: it creates a new shell, a new
terminal pair, and has a process running busy shuffling the data between both
sides of the pipe, with a copy to /dev/null.  At best, it is horribly wasteful
and doubles context switches.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to