From owner-freebsd-questions Sat Jan 1 7:35:34 2000 Delivered-To: freebsd-questions@freebsd.org Received: from hawaii.uni-trier.de (hawaii.uni-trier.de [136.199.8.223]) by hub.freebsd.org (Postfix) with ESMTP id 131AF14E09 for ; Sat, 1 Jan 2000 07:35:24 -0800 (PST) (envelope-from blank@uni-trier.de) Received: from uni-trier.de (rzppp-28.uni-trier.de [136.199.4.28]) by hawaii.uni-trier.de (8.9.3+Sun/8.9.3) with ESMTP id QAA16865 for ; Sat, 1 Jan 2000 16:35:21 +0100 (MET) Received: (from blank@localhost) by uni-trier.de (8.9.3/8.9.3) id PAA00507 for questions@freebsd.org; Sat, 1 Jan 2000 15:33:19 +0100 (CET) (envelope-from blank) Date: Sat, 1 Jan 2000 15:33:18 +0100 From: Sascha Blank To: questions@freebsd.org Subject: Should /etc/rc correct /dev/console's owner and mode? Message-ID: <20000101153318.A382@blank.uni-trier.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i Organization: Computer Center of the University of Trier, Germany Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello, /etc/rc on my FreeBSD 3.4-RELEASE/i386 system contains the following lines: # Whack the pty perms back into shape. chflags 0 /dev/tty[pqrsPQRS]* chmod 666 /dev/tty[pqrsPQRS]* chown root:wheel /dev/tty[pqrsPQRS]* Shouldn't something similar be done to /dev/console? I'm asking because I have just experienced the following situation: I have installed xdm from XFree86 3.3.5 and configured it to display "xconsole" along with the xlogin widget. I use the scripts "GiveConsole" and "TakeConsole" as advised to assign the ownership of /dev/console to the user that is currently logged in. Today I somehow managed it to freeze my X server while I was logged in; I had to reboot by pressing the reset button. When xdm finally started up it didn't show xconsole because /dev/console still belonged to me instead of root ("Couldn't open console"). This problem can of course be solved by adding a few lines to /usr/X11R6/lib/X11/xdm/Xsetup (where xconsole is usually started). But nonetheless this makes me wonder whether the permission and ownership of /dev/console shouldn't be reset at boot time to the values of /dev/MAKEDEV. Any thoughts? -- Sascha Blank | FreeBSD - Student and System Administrator | that's where you want to go today! at the University of Trier, Germany | mailto:blank@fox.uni-trier.de | See http://www.freebsd.org for details To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message