Date: Tue, 3 Jul 2001 10:21:46 +0300 From: Ruslan Ermilov <ru@FreeBSD.org> To: Alfred Perlstein <bright@sneakerz.org> Cc: current@FreeBSD.org Subject: Re: TIOCSCTTY Message-ID: <20010703102146.D99875@sunbay.com> In-Reply-To: <20010702111904.O84523@sneakerz.org>; from bright@sneakerz.org on Mon, Jul 02, 2001 at 11:19:04AM -0500 References: <20010702185048.A21809@sunbay.com> <20010702111904.O84523@sneakerz.org>
index | next in thread | previous in thread | raw e-mail
On Mon, Jul 02, 2001 at 11:19:04AM -0500, Alfred Perlstein wrote:
> * Ruslan Ermilov <ru@FreeBSD.org> [010702 10:51] wrote:
> > Hi!
> >
> > Could someone please explain why the following code snippet
> > does not work anymore with the "/dev/console" argument?
> >
> > # ./tiocsctty /dev/console
> > tiocsctty: ioctl(/dev/console, TIOCSCTTY): Operation not permitted
>
> I think LINT has an option to allow this. The reason, I think, is
> that you don't want non-root users to be able to grab the console
> output as it may allow them to obscure evil behavior. :)
>
If you mean UCONSOLE, I doubt this is the case:
1) I do have it compiled in.
2) I run this program under root.
3) I do not have any session that has /dev/console as its
controlling tty.
Cheers,
--
Ruslan Ermilov Oracle Developer/DBA,
ru@sunbay.com Sunbay Software AG,
ru@FreeBSD.org FreeBSD committer,
+380.652.512.251 Simferopol, Ukraine
http://www.FreeBSD.org The Power To Serve
http://www.oracle.com Enabling The Information Age
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010703102146.D99875>
