From owner-freebsd-current Mon Jul 2 9:19: 8 2001 Delivered-To: freebsd-current@freebsd.org Received: from sneakerz.org (sneakerz.org [216.33.66.254]) by hub.freebsd.org (Postfix) with ESMTP id 7849037B403; Mon, 2 Jul 2001 09:19:04 -0700 (PDT) (envelope-from bright@sneakerz.org) Received: by sneakerz.org (Postfix, from userid 1092) id 297F55D010; Mon, 2 Jul 2001 11:19:04 -0500 (CDT) Date: Mon, 2 Jul 2001 11:19:04 -0500 From: Alfred Perlstein To: Ruslan Ermilov Cc: current@FreeBSD.org Subject: Re: TIOCSCTTY Message-ID: <20010702111904.O84523@sneakerz.org> References: <20010702185048.A21809@sunbay.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20010702185048.A21809@sunbay.com>; from ru@FreeBSD.org on Mon, Jul 02, 2001 at 06:50:48PM +0300 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Ruslan Ermilov [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. :) -- -Alfred Perlstein [alfred@freebsd.org] Ok, who wrote this damn function called '??'? And why do my programs keep crashing in it? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message