From owner-freebsd-questions Sun Mar 24 13:46:15 2002 Delivered-To: freebsd-questions@freebsd.org Received: from russian-caravan.cloud9.net (russian-caravan.cloud9.net [168.100.1.4]) by hub.freebsd.org (Postfix) with ESMTP id 9379F37B400 for ; Sun, 24 Mar 2002 13:46:11 -0800 (PST) Received: from earl-grey.cloud9.net (earl-grey.cloud9.net [168.100.1.1]) by russian-caravan.cloud9.net (Postfix) with ESMTP id D7C4128E93; Sun, 24 Mar 2002 16:46:10 -0500 (EST) Date: Sun, 24 Mar 2002 16:46:10 -0500 (EST) From: Peter Leftwich X-X-Sender: To: "Gary W. Swearingen" Cc: Joe & Fhe Barbish , FreeBSD Questions Subject: Re: command history for user accounts [tcsh promotion] In-Reply-To: <7mit7m5l6w.t7m@localhost.localdomain> Message-ID: <20020324164045.H50035-100000@earl-grey.cloud9.net> Organization: Video2Video Services - http://Www.Video2Video.Com MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 On 24 Mar 2002, Gary W. Swearingen wrote: > "Joe & Fhe Barbish" writes: > > 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. > All shells have history, probably enabled by shell default. Determine which shell your users are getting by default (/etc/adduser.conf, or better, /etc/passwd) and check the man page for the history-controlling environmental variables and "set" commands. Then investigate how the users have these set and maybe how they got set (shell startup scripts). Some scripts come from "/usr/share/skel/", others are in /etc/. I use tcsh for my shell and in my ~/.cshrc (or you can use ~/.tcshrc, which is sourced at login, or may be manually sourced by typing `source ~/.cshrc if you make changes to it) I have: set history = 1000 set savehist = 1000 set histfile = ~/.history This way, I can type `history | less -e` at my prompt and see command number, HH:MM, and command. If anyone knows how I can configure this command to be more verbose and include day/date, please POST how. The tcsh shell stores this information in a file I've set as ~/.history which can be backed up to an archive or copied to a folder for later perusal. Each command, however, is preceded by an odd code that seems to be the command number and time wrapped up in long integer. -- Peter Leftwich President & Founder Video2Video Services Box 13692, La Jolla, CA, 92039 USA +1-413-403-9555 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message