From owner-freebsd-questions Mon Jan 26 12:56:54 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA26784 for questions-outgoing; Mon, 26 Jan 1998 12:56:54 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from seera.nttlabs.com (seera.nttlabs.com [204.162.36.81]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA26771 for ; Mon, 26 Jan 1998 12:56:50 -0800 (PST) (envelope-from gene@nttlabs.com) Received: from nttlabs.com (localhost [127.0.0.1]) by seera.nttlabs.com (8.8.8/8.8.7) with ESMTP id MAA29550 for ; Mon, 26 Jan 1998 12:56:19 -0800 (PST) Message-ID: <34CCF870.A9AE8842@nttlabs.com> Date: Mon, 26 Jan 1998 12:56:16 -0800 From: "Eugene M. Kim" Organization: NTT Multimedia Communications Laboratories X-Mailer: Mozilla 4.04 [en] (X11; I; FreeBSD 3.0-CURRENT i386) MIME-Version: 1.0 To: Questions FreeBSD ML Subject: Re: logging in as root under X References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk Greetings, Donn Miller wrote: > > I've noticed that I can't login as root when running X: > > xterm -e login root & and then I type the password but I get rejected. > All other logins work ok though under X. Also, if I start X as root and > then type `finger', I don't see root listed under the pseudo-terminals > anywhere. For ex., if I have two xterms open, finger should report > that root is on ttyp0 and ttyp1 but I don't see them. > > If I start a new xterm via xterm -e login dmm125 &, I can log in OK and > `finger' reports me as being logged in on ttyp2. But none of this works > for root. syslogd reports LOGIN root REFUSED (NOROOT) ON ttyp2. I can > still get an xterm open as root by selecting "new window" from the default > root menu (mwm). But finger doesn't show root as being logged in on that > tty. I'm running FreeBSD 3.0-980123-SNAP. > > Help appreciated. Thanks > > Donn This is because the root login is disabled by default on pseudo-ttys (tty[pqrsPQRS]*), which xterm uses. If you must, you can enable it by changing the keyword "insecure" to "secure" on the corresponding lines in /etc/ttys, but this is STRONGLY discouraged -- at least in my opinion -- because it will permit root logins from the outside network as well and thus very dangerous. I hope this helped, Gene -- Eugene M. Kim Software Developer NTT Multimedia Communications Laboratories mailto:gene@nttlabs.com