[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Edlug Archive May 2004 ]

RE: [edlug] Checking Users Bash History




What if there is no .bash_history in the users' home directory when you
ls- al?

P

-----Original Message-----
From: owner-edlug@xxx.xxx.xxx [mailto:owner-edlug@xxx.xxx.xxx] On
Behalf Of Caitlin
Sent: 04 May 2004 11:36
To: edlug@xxx.xxx.xxx
Subject: Re: [edlug] Checking Users Bash History



 --- Steve Kemp <edlug@xxx.xxx.xxx> wrote: > 
> On Tue, May 04, 2004 at 11:16:48AM +0100, Peter
> George wrote:
> 
> > How can I check the last few bash commands of a
> particular user on my
> > server?
> 
>   Look at their .bash_history file, if it exists and
> hasn't been removed
>  or editted.

That won't work if they're currently logged in,
because the history file is normally only updated on
logout.

-- 
Caitlin Ross
http://www.joannou.net/topofthestairs/

-
----------------------------------------------------------------------
You can find the EdLUG mailing list FAQ list at:
http://www.edlug.org.uk/list_faq.html
-
----------------------------------------------------------------------
You can find the EdLUG mailing list FAQ list at:
http://www.edlug.org.uk/list_faq.html



This archive is kept by wibble@morpheux.org.DONTSPAMME
homepage