From owner-freebsd-hackers Sun Aug 6 16:39:26 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.11/8.6.6) id QAA18321 for hackers-outgoing; Sun, 6 Aug 1995 16:39:26 -0700 Received: from irbs.irbs.com (irbs.com [199.182.75.129]) by freefall.cdrom.com (8.6.11/8.6.6) with ESMTP id QAA18311 for ; Sun, 6 Aug 1995 16:39:23 -0700 Received: (from jc@localhost) by irbs.irbs.com (8.6.11/8.6.6) id TAA13402; Sun, 6 Aug 1995 19:39:12 -0400 From: John Capo Message-Id: <199508062339.TAA13402@irbs.irbs.com> Subject: Re: /dev/console & xconsole To: rpt@miles.sso.loral.com Date: Sun, 6 Aug 1995 19:39:11 -0400 (EDT) Cc: freebsd-hackers@freefall.cdrom.com (freebsd-hackers) In-Reply-To: <199508062303.AA21733@physics.su.oz.au> from "David Dawes" at Aug 7, 95 09:03:21 am X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 811 Sender: hackers-owner@FreeBSD.org Precedence: bulk David Dawes writes: > > >Is there some magic I need to work to get xconsole to be able > >to open the console from my .xinitrc in 2.05? Did some characteristic of > >/dev/console change? > > > >It works if started manually after an 'su'. Current permissions are: > > > ># ll /usr/X11R6/bin/xconsole > >-rwsr-xr-x 1 root bin 16384 May 8 20:00 /usr/X11R6/bin/xconsole > ># ll /dev/console > >crw-rw-rw- 1 root wheel 0, 0 Aug 6 11:53 /dev/console > > I don't know the answer to your problem, but having xconsole setuid-root > is a mistake security-wise. > > David > /dev/console needs to be owned by the user running xconsole. It works after you su due to /dev/console being owned by root. If you run xdm, the console is chown'ed to the user logging in. John Capo IRBS Engineering