From owner-freebsd-questions Sat Mar 23 23:34: 5 2002 Delivered-To: freebsd-questions@freebsd.org Received: from pintail.mail.pas.earthlink.net (pintail.mail.pas.earthlink.net [207.217.120.122]) by hub.freebsd.org (Postfix) with ESMTP id 1AD3A37B417 for ; Sat, 23 Mar 2002 23:34:01 -0800 (PST) Received: from sdn-ar-004dcwashp270.dialsprint.net ([206.133.15.200] helo=moo.holy.cow) by pintail.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 16p2Vn-0001if-00; Sat, 23 Mar 2002 23:33:56 -0800 Received: by moo.holy.cow (Postfix, from userid 1001) id 6265250B98; Sun, 24 Mar 2002 02:36:06 -0500 (EST) Date: Sun, 24 Mar 2002 02:36:06 -0500 From: parv@pair.com To: Joe & Fhe Barbish Cc: FBSDQ Subject: Re: command history for user accounts Message-ID: <20020324073606.GA7992@moo.holy.cow> Mail-Followup-To: Joe & Fhe Barbish , FBSDQ References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG in message , wrote Joe & Fhe Barbish thusly... > > My regular users created with adduser do not have any > command history like my root has. I am using the default sh shell. > I have command on the root account. > > Is this normal? > > How do I turn on command history for regular user accounts? i am not clear about the statement "i use default sh shell". is that the default shell for new user or for yourself? if it's for new user, then, you can ignore this whole post. command history & its access is shell dependent. in ksh 'r' is the command to execute the last-command-in-history when given no arguments; in bash, it's "!". even sh has this, but w/o aliases or man page, it's not easier. given this /etc/shells... /bin/sh /bin/csh /bin/tcsh /bin/bash /usr/local/bin/ksh93 /usr/local/bin/zsh /usr/local/bin/bash ...adduser lists the following shells, first entry being the default... Enter your default shell: bash csh date ksh93 no sh tcsh zsh [bash]: ...if i didn't have bash, the default shell would be csh (for the new user). as i understand it, csh is now tcsh (and tcsh provides better/easier access to history than plain csh), which is the default shell for root. now, if the csh has not been replaced (w/ tcsh) -- or, if bash is not installed, or if adduser version doesn't sort the shell list -- in your freebsd version, it's quite possible that new users are assigned csh. thus, they might not have easy access to history like you do w/ whatever shell that you are using as root. what was my point again? - parv -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message