From owner-freebsd-questions Wed Mar 5 07:56:02 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id HAA23967 for questions-outgoing; Wed, 5 Mar 1997 07:56:02 -0800 (PST) Received: from mail.EUnet.hu (www.eunet.hu [193.225.28.100]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id HAA23925 for ; Wed, 5 Mar 1997 07:55:58 -0800 (PST) Received: by mail.EUnet.hu, id QAA16153; Wed, 5 Mar 1997 16:55:54 +0100 Received: (from zgabor@localhost) by CoDe.hu (8.7.5/8.7.3) id PAA00270; Wed, 5 Mar 1997 15:45:20 +0100 (MET) From: Zahemszky Gabor Message-Id: <199703051445.PAA00270@CoDe.hu> Subject: Re: Post installation stuff To: freebsd-questions@freebsd.org (FreeBSD questions) Date: Wed, 5 Mar 1997 15:45:19 +0100 (MET) Cc: rgireyev@BellInd.com In-Reply-To: from "RGireyev@BellInd.com" at "Feb 28, 97 04:11:09 pm" X-Mailer: ELM [version 2.4ME+ PL11 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > Hi! > > I have a success story and a couple of questions. > > I have been able to successfully install 2.1.7 on a > 5x86 120, 16M RAM, 850HD. I tried using system > commander but kept getting read error. Anyway, I ended > up using the default MBR handler and it works just fine. > > Question 1: I would like to have my prompt (PS1) > to always show me the directory path I'm in (pwd) > In HP-UX land (Korn shell) it's PS1='$PWD'. > Any suggestions. FreeBSD has only sh and csh installed, all the other shells are only ports or packages. a) get pdksh b) go to AT&T's www server, and get the new ksh93 binary, built on a BSDI system (or the Linux version with the linuxulator, if 2.1.7 can run Linux elf programs - as I've heard 2.2 will do.) c) FreeBSD's sh is a not 100%-compatible Bourne-shell(*), and in it you can do a shell-function, like this: cd() { chdir "$1" PS1="`pwd` # " } and it works. This sh has an ENV-file as ksh has, so you can put this command to it. * (The original Bourne-shell hasn't got functions. The new versions has, but they search functions after built-in-commands, so cannot make a cd-function. And sh hasn't got a chdir command, it's a bit like csh-ism. And yes, in this version of sh, we have alias, but as you know, the ksh alias command cannot get parameters.) > Question 2: After installing the system I created > a user, me. And assigned him (me) to the group wheel. > But I cannot do su or shutdown, what would be a > better group choice (bin comes to mind but I wanna > be sure) I've read somewhere in this list, that adduser cannot correctly put anybody into wheel group, so put that person into group wheel with ``vi /etc/group'' like command. Gabor