Date: Wed, 5 Mar 1997 15:45:19 +0100 (MET) From: Zahemszky Gabor <zgabor@CoDe.hu> To: freebsd-questions@freebsd.org (FreeBSD questions) Cc: rgireyev@BellInd.com Subject: Re: Post installation stuff Message-ID: <199703051445.PAA00270@CoDe.hu> In-Reply-To: <c=US%a=_%p=BellInd%l=CDCEXCHANGE-970301001109Z-8223@cdcexchange.bellind.com> from "RGireyev@BellInd.com" at "Feb 28, 97 04:11:09 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199703051445.PAA00270>
