On Tue, Jun 20, 2006 at 10:10:23PM +0200, Nikolai Weibull wrote:
> Ah, that would have worked if /dev/console wasn't 0600 and owned by
> root:tty. I guess sudoing a tail is the best (read: only viable) way
> to do this then...
Right, I just checked the linux kernel source. It's even a bit worse,
only root can do TIOCCONS on linux:
static int tioccons(struct file *file)
{
if (!capable(CAP_SYS_ADMIN))
return -EPERM;
The way it is done in other UNIXes makes much more sense, see e.g.
the SRIOCSREDIR ioctl in solaris.
Cheers,
Michael.
--
Michael Schroeder [EMAIL PROTECTED]
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}
_______________________________________________
screen-users mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/screen-users