From owner-freebsd-questions Wed Jan 5 22:44:42 2000 Delivered-To: freebsd-questions@freebsd.org Received: from dorifer.heim3.tu-clausthal.de (dorifer.heim3.tu-clausthal.de [139.174.243.252]) by hub.freebsd.org (Postfix) with ESMTP id 788B815590 for ; Wed, 5 Jan 2000 22:44:40 -0800 (PST) (envelope-from olli@dorifer.heim3.tu-clausthal.de) Received: (from olli@localhost) by dorifer.heim3.tu-clausthal.de (8.9.3/8.9.3) id HAA64971; Thu, 6 Jan 2000 07:44:39 +0100 (CET) (envelope-from olli) Date: Thu, 6 Jan 2000 07:44:39 +0100 (CET) Message-Id: <200001060644.HAA64971@dorifer.heim3.tu-clausthal.de> From: Oliver Fromme To: freebsd-questions@FreeBSD.ORG Subject: Re: window manager question X-Newsgroups: list.freebsd-questions In-Reply-To: <851cui$2hnb$1@atlantis.rz.tu-clausthal.de> User-Agent: tin/1.4.1-19991201 ("Polish") (UNIX) (FreeBSD/3.4-19991219-STABLE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG R Joseph Wright wrote in list.freebsd-questions: > Oliver Fromme wrote: >> I usually configure all virtual terminals as "insecure", so >> it's impossible to login as root. ;-) (ssh and ftp don't >> allow root logins by default, and telnet is disabled on most >> of the FreeBSD boxes here.) > > How do you configure a terminal as insecure? Replace "secure" by "insecure" in /etc/ttys for all virtual terminals. For details, type ``man ttys'' and look for the paragraph containing the word ``secure''. > if [[ $EUID -eq 0 ]]; then > PS1="root@\h\w\$" > else > PS1="joseph@\h\w\$" > fi > According to the man page on bash, the "$" is supposed to show up as "#" > if uid is 0, otherwise it will show as "$". It doesn't do this, > however. It always shows up as "$", regardless of uid. Hmm, no idea. I'm not a bash expert. Maybe it's a bug. As a workaround, you can just write "#" in the first "PS1" line, of course. Regards Oliver -- Oliver Fromme, Leibnizstr. 18/61, 38678 Clausthal, Germany (Info: finger userinfo:olli@dorifer.heim3.tu-clausthal.de) "In jedem Stück Kohle wartet ein Diamant auf seine Geburt" (Terry Pratchett) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message