Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Jan 18, 2005 12:22 pm 
Offline
Newbie

Joined: Tue Jan 18, 2005 12:19 pm
Posts: 2
Hi all,

I want to know the file where linux stores all the commands executed by perticular user.

I was knowing that command / file but at the moment I am not able to guess it.

can anybody help me please.

cheers.
James


Top
   
 Post subject:
PostPosted: Tue Jan 18, 2005 12:32 pm 
Offline
Senior Member
User avatar

Joined: Mon Jun 23, 2003 1:25 pm
Posts: 260
history


Top
   
 Post subject: Thanks
PostPosted: Tue Jan 18, 2005 12:53 pm 
Offline
Newbie

Joined: Tue Jan 18, 2005 12:19 pm
Posts: 2
Thanks for the reply.

i tried the command history and its working fine.

but, is there any way to find out which command is executed at which time and by whom?

cheers.
james


Top
   
 Post subject: Re: Thanks
PostPosted: Tue Jan 18, 2005 3:15 pm 
Offline
Senior Member

Joined: Thu Aug 28, 2003 12:57 am
Posts: 273
james054u wrote:
Thanks for the reply.

i tried the command history and its working fine.

but, is there any way to find out which command is executed at which time and by whom?

cheers.
james


I'm not too familiar with this because I've never done it, but I'm pretty sure that you'll want to use "bsd process accounting" for this. I think it may require a kernel option to be turned on, and I'm not sure if the Linode kernels have it enabled. You can find out by looking up the config list for your kernel on the Linode boards - search for the kernel version that you are running, you should find a list somewhere on these boards detailing what kernel options are turned on for that kernel.

Also search on google for "bsd process accounting", I think you'll probably find lots of documentation on setting this up and using it.

I don't think there will be any way for you to find out what has already happened on your Linode; setting up bsd process accounting will only help you going forward. So if you really want to know what program was already run by some user, then you may be out of luck, unless you already had bsd process accounting turned on.


Top
   
 Post subject: Re: Thanks
PostPosted: Tue Jan 18, 2005 3:48 pm 
Offline
Senior Member

Joined: Sat Jun 28, 2003 12:02 am
Posts: 66
Website: http://kenny.aust.in
james054u wrote:
..but, is there any way to find out which command is executed at which time and by whom?

bji wrote:
..but I'm pretty sure that you'll want to use "bsd process accounting" for this.


GNU Accounting Utils does just that (uses bsd process accounting to report commands ran by who/when).

If you are running debian
Code:
apt-get install acct


- kenny


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group