From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id B476F138247 for ; Wed, 8 Jan 2014 12:11:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EEADAE0CA1; Wed, 8 Jan 2014 12:10:42 +0000 (UTC) Received: from homiemail-a79.g.dreamhost.com (caibbdcaacbg.dreamhost.com [208.113.200.216]) by pigeon.gentoo.org (Postfix) with ESMTP id 0A030E0C9B for ; Wed, 8 Jan 2014 12:10:41 +0000 (UTC) Received: from homiemail-a79.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a79.g.dreamhost.com (Postfix) with ESMTP id 30BA17D4070 for ; Wed, 8 Jan 2014 04:10:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=libertytrek.org; h= message-id:date:from:mime-version:to:subject:content-type: content-transfer-encoding; s=libertytrek.org; bh=b7sqIm5qoonytpH QLiyTDBsSLBI=; b=IdfX+nawyyJp5mz6+UQkbVIM87BGYUtTa1oU+BLaUKNGVnU tQMxLTvcOSKJxbY0YtB/6GZbEb6Arjc2c5oPap8vL2iA5S3389+SfYza5+3XQxsL wp2XSVwapwLpAmZ+7vjAYFfJnz1QO886yimMMCDvCc8lprM3QYSv2A/IuzEg= Received: from [127.0.0.1] (unknown [159.63.145.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: tanstaafl@libertytrek.org) by homiemail-a79.g.dreamhost.com (Postfix) with ESMTPSA id 138427D406E for ; Wed, 8 Jan 2014 04:10:40 -0800 (PST) Message-ID: <52CD4022.2090504@libertytrek.org> Date: Wed, 08 Jan 2014 07:10:10 -0500 From: Tanstaafl User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] Questions about History file Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 2a7269f8-bf30-4d70-ba72-7f972bb9d18d X-Archives-Hash: dd360e8579591e7cd9f28309d1ef9af9 Hi all, I routinely am logged into a server with multiple consoles (I log in with one (the same) regular user, then su - to root). This morning I tried to grep roots .bash_history for a command I ran some time ago, and it wasn't there. I know I ran it, so I'd like to configure my bash history so this doesn't happen again. Thinking about it a bit, the first issue I see is... when I am running multiple consoles, each one having been started by first logging in as my normal user, then su - to root, how does this affect the .bash_history file? It seems like there would be a collision of some kind, maybe result in the last one to log out 'winning' (that .bash_history is the one that is saved/stored) or something? Maybe... would it be possible to use different regular users, then when each one does the su - to root, have it create a separate .bash_history file based on the original username? That would be perfect. I was also considering something like setting HISTSIZE=###, then adding something to the logrotate.conf file to start rotating the history file, so I don't lose anything - but I'm not sure if that would even work. So, I'm interested in how others do this... especially on a system that has multiple users managing it. Thx... Charles