Some commands not logged in pacct | Unix Linux Forums | Debian

  Go Back    


Debian Debian GNU/Linux is a free distribution of the GNU/Linux operating system.

Some commands not logged in pacct

Debian


Tags
acct, debian, pacct, unix

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 07-03-2012
suvios suvios is offline
Registered User
 
Join Date: Jul 2012
Last Activity: 3 July 2012, 10:42 AM EDT
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Some commands not logged in pacct

Hi,

Examining the Debian Linux logfiles, I found out that not all commands are logged in my pacct (/var/log/account/pacct)

For instance, if I run and stop Wireshark and do after that

# lastcomm | grep "wireshark"

The wireshark command is logged as expected.


Code:
# lastcomm | grep "wireshark"
wireshark            X user   pts/4      0.68 secs Sun Jul  1 18:55
#

But if i do the same with for instance Gedit, then i got nothing.


Code:
# lastcomm | grep "gedit"
#

What could be the reason for that?


I looked already for quite a long time on the internet for answers but couldn't find them. And all the tutorials talk about the logging of ALL executed commands, not about any exceptions. So, I am a bit confused.

Till now, all the applications i tested where graphical applications of Gnome those are not logged, like:
gedit, gthumb and evolution. So just a thought: Could the reason perhaps lie in the fact that those applications are part of some bigger 'application' that is still running?

Last edited by suvios; 07-03-2012 at 10:36 AM..
Sponsored Links
    #2  
Old 07-18-2012
angryfirelord angryfirelord is offline
Registered User
 
Join Date: Jun 2012
Last Activity: 11 February 2013, 6:31 PM EST
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
This may seem like a silly question, but are you executing the commands under a different user? The commands that you run on root won't be remembered by the regular user.

You may also want to look at .bash_history and see if for some reason it has hit a maximum file size.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Are FSCK commands logged during single user mode? manni2 Solaris 1 07-09-2010 01:14 PM
Script to identify logged users & commands executed vijayarajvp Shell Programming and Scripting 2 07-14-2009 08:22 AM
Require some way or shell in which commands doesnot gets logged in history file harpreetrekhi Solaris 2 06-05-2009 03:34 PM
Can I gzip or delete pacct files in solaris ? neel.gurjar Solaris 3 09-16-2008 04:12 AM
know who logged and logged out with their timings vkandati UNIX for Dummies Questions & Answers 3 03-09-2005 09:04 AM



All times are GMT -4. The time now is 06:16 AM.