Date: Thu, 6 Jan 2000 07:44:39 +0100 (CET) From: Oliver Fromme <olli@dorifer.heim3.tu-clausthal.de> To: freebsd-questions@FreeBSD.ORG Subject: Re: window manager question Message-ID: <200001060644.HAA64971@dorifer.heim3.tu-clausthal.de> In-Reply-To: <851cui$2hnb$1@atlantis.rz.tu-clausthal.de>
next in thread | previous in thread | raw e-mail | index | archive | help
R Joseph Wright <rjoseph@nwlink.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200001060644.HAA64971>