[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Showing /dev/tty12 (or similar) syslog output in screen window

From: Michael Schroeder
Subject: Re: Showing /dev/tty12 (or similar) syslog output in screen window
Date: Wed, 21 Jun 2006 11:40:14 +0200
User-agent: Mutt/

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.


Michael Schroeder           address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]