<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: How to keep a detailed audit trail of what&#8217;s being done on your Linux systems</title> <atom:link href="http://www.cyberciti.biz/tips/howto-log-user-activity-using-process-accounting.html/feed" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/tips/howto-log-user-activity-using-process-accounting.html</link> <description>This is a Linux sys admin journal by Vivek about sys admin work, Linux tips &#38; tricks, hacks, news and more.</description> <lastBuildDate>Fri, 10 Feb 2012 20:37:43 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: jalal hajigholamali</title><link>http://www.cyberciti.biz/tips/howto-log-user-activity-using-process-accounting.html#comment-173562</link> <dc:creator>jalal hajigholamali</dc:creator> <pubDate>Fri, 26 Aug 2011 05:57:07 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-log-user-activity-using-process-accounting.html#comment-173562</guid> <description>Thanks for the useful how to,</description> <content:encoded><![CDATA[<p>Thanks for the useful how to,</p> ]]></content:encoded> </item> <item><title>By: Peter</title><link>http://www.cyberciti.biz/tips/howto-log-user-activity-using-process-accounting.html#comment-171741</link> <dc:creator>Peter</dc:creator> <pubDate>Sat, 04 Jun 2011 04:35:07 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-log-user-activity-using-process-accounting.html#comment-171741</guid> <description>Just knowing the command (by itself) the user ran is useless. You absolutely need it&#039;s arguments, and the  parent process&#039;s CWD.   Other than that, it&#039;s a &quot;cute&quot; toy, and little else.</description> <content:encoded><![CDATA[<p>Just knowing the command (by itself) the user ran is useless. You absolutely need it&#8217;s arguments, and the  parent process&#8217;s CWD.   Other than that, it&#8217;s a &#8220;cute&#8221; toy, and little else.</p> ]]></content:encoded> </item> <item><title>By: Chuong</title><link>http://www.cyberciti.biz/tips/howto-log-user-activity-using-process-accounting.html#comment-170949</link> <dc:creator>Chuong</dc:creator> <pubDate>Wed, 27 Apr 2011 05:06:34 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-log-user-activity-using-process-accounting.html#comment-170949</guid> <description>rm                      vivek    pts/0      0.00 secs Tue Nov 14 00:30
rm                      vivek    pts/1      0.00 secs Tue Nov 14 00:30
rm                      vivek    pts/1      0.00 secs Tue Nov 14 00:29
rm                      vivek    pts/1      0.00 secs Tue Nov 14 00:29
vivek is remove many files. The command just showing &quot;rm&quot; command, So how could i know what did he remove ??????
Please help</description> <content:encoded><![CDATA[<p>rm                      vivek    pts/0      0.00 secs Tue Nov 14 00:30<br
/> rm                      vivek    pts/1      0.00 secs Tue Nov 14 00:30<br
/> rm                      vivek    pts/1      0.00 secs Tue Nov 14 00:29<br
/> rm                      vivek    pts/1      0.00 secs Tue Nov 14 00:29</p><p>vivek is remove many files. The command just showing &#8220;rm&#8221; command, So how could i know what did he remove ??????</p><p>Please help</p> ]]></content:encoded> </item> <item><title>By: Ankit Sharma</title><link>http://www.cyberciti.biz/tips/howto-log-user-activity-using-process-accounting.html#comment-170341</link> <dc:creator>Ankit Sharma</dc:creator> <pubDate>Mon, 28 Mar 2011 05:08:54 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-log-user-activity-using-process-accounting.html#comment-170341</guid> <description>I&#039;ve taken a project to work upon tracing of runtime activities on unix system
into a log file. Like, to implement a program which will show the log of everything
happened in past, including many requirements, like applications i used (with the time of access),
kind of files/directories i opened, closed, created, deleted(with the time), etc.
.
Please suggest me something to do it in a better way.</description> <content:encoded><![CDATA[<p>I&#8217;ve taken a project to work upon tracing of runtime activities on unix system<br
/> into a log file. Like, to implement a program which will show the log of everything<br
/> happened in past, including many requirements, like applications i used (with the time of access),<br
/> kind of files/directories i opened, closed, created, deleted(with the time), etc.<br
/> .<br
/> Please suggest me something to do it in a better way.</p> ]]></content:encoded> </item> <item><title>By: Bostjan Skufca</title><link>http://www.cyberciti.biz/tips/howto-log-user-activity-using-process-accounting.html#comment-168807</link> <dc:creator>Bostjan Skufca</dc:creator> <pubDate>Thu, 17 Feb 2011 11:23:29 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-log-user-activity-using-process-accounting.html#comment-168807</guid> <description>@praveen c: &quot;pwd&quot; is a shell built-in command and is not executed. However snoopy does exactly what you have described.</description> <content:encoded><![CDATA[<p>@praveen c: &#8220;pwd&#8221; is a shell built-in command and is not executed. However snoopy does exactly what you have described.</p> ]]></content:encoded> </item> <item><title>By: praveen c</title><link>http://www.cyberciti.biz/tips/howto-log-user-activity-using-process-accounting.html#comment-168805</link> <dc:creator>praveen c</dc:creator> <pubDate>Thu, 17 Feb 2011 09:01:46 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-log-user-activity-using-process-accounting.html#comment-168805</guid> <description>Hi,
I gone through the entire comments but nobody clearly spacifying..is there any tool for tracking the user executed commands and path of the file/folder.
Like [root@nisslave pravi]# pwd
/home/pravi
[root@nisslave pravi]# cat test
dfasdf
[root@nisslave pravi]#</description> <content:encoded><![CDATA[<p>Hi,</p><p>I gone through the entire comments but nobody clearly spacifying..is there any tool for tracking the user executed commands and path of the file/folder.</p><p>Like [root@nisslave pravi]# pwd<br
/> /home/pravi<br
/> [root@nisslave pravi]# cat test<br
/> dfasdf<br
/> [root@nisslave pravi]#</p> ]]></content:encoded> </item> <item><title>By: RogerD</title><link>http://www.cyberciti.biz/tips/howto-log-user-activity-using-process-accounting.html#comment-158545</link> <dc:creator>RogerD</dc:creator> <pubDate>Thu, 29 Jul 2010 21:14:00 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-log-user-activity-using-process-accounting.html#comment-158545</guid> <description>I&#039;m running with pam_tty_audit and it appears it only logs root level key events, regardless of the settings in the session entry. It seems to ignore the disable= and enable= settings. The man page has the example of enabling root, but specifying a different user (ex  enable=username ) still logs root only.</description> <content:encoded><![CDATA[<p>I&#8217;m running with pam_tty_audit and it appears it only logs root level key events, regardless of the settings in the session entry. It seems to ignore the disable= and enable= settings. The man page has the example of enabling root, but specifying a different user (ex  enable=username ) still logs root only.</p> ]]></content:encoded> </item> <item><title>By: rea</title><link>http://www.cyberciti.biz/tips/howto-log-user-activity-using-process-accounting.html#comment-154836</link> <dc:creator>rea</dc:creator> <pubDate>Wed, 07 Apr 2010 09:42:18 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-log-user-activity-using-process-accounting.html#comment-154836</guid> <description>hi, i just installed snoopy on fedora 12. but i dont know how to view log. where snoopy`s log file located? could u explain me pls/  i read instruction file but nothing found something that help me. sry my bad english</description> <content:encoded><![CDATA[<p>hi, i just installed snoopy on fedora 12. but i dont know how to view log. where snoopy`s log file located? could u explain me pls/  i read instruction file but nothing found something that help me. sry my bad english</p> ]]></content:encoded> </item> <item><title>By: Vince</title><link>http://www.cyberciti.biz/tips/howto-log-user-activity-using-process-accounting.html#comment-154472</link> <dc:creator>Vince</dc:creator> <pubDate>Mon, 22 Mar 2010 23:45:41 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-log-user-activity-using-process-accounting.html#comment-154472</guid> <description>I&#039;m not totally sure yet, but support for process accounting has to be also enabled in the kernel to make all features of acct work.
=&gt; CONFIG_BSD_PROCESS_ACCT</description> <content:encoded><![CDATA[<p>I&#8217;m not totally sure yet, but support for process accounting has to be also enabled in the kernel to make all features of acct work.<br
/> =&gt; CONFIG_BSD_PROCESS_ACCT</p> ]]></content:encoded> </item> <item><title>By: Bostjan Skufca</title><link>http://www.cyberciti.biz/tips/howto-log-user-activity-using-process-accounting.html#comment-154364</link> <dc:creator>Bostjan Skufca</dc:creator> <pubDate>Thu, 18 Mar 2010 20:57:54 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-log-user-activity-using-process-accounting.html#comment-154364</guid> <description>@jav:
Weird. Can you compile and run this program once as root and once as non-privileged user on your system? Source here:
http://source.a2o.si/tmp/snoopy/test-getuid.c
Compiled for Linux 32bit here:
http://source.a2o.si/tmp/snoopy/test-getuid
Post the results on sourceforge issue tracker please (in order not to bloat this blog post with irrelevant comments)
Tnx!</description> <content:encoded><![CDATA[<p>@jav:</p><p>Weird. Can you compile and run this program once as root and once as non-privileged user on your system? Source here:<br
/> <a
href="http://source.a2o.si/tmp/snoopy/test-getuid.c" rel="nofollow">http://source.a2o.si/tmp/snoopy/test-getuid.c</a></p><p>Compiled for Linux 32bit here:<br
/> <a
href="http://source.a2o.si/tmp/snoopy/test-getuid" rel="nofollow">http://source.a2o.si/tmp/snoopy/test-getuid</a></p><p>Post the results on sourceforge issue tracker please (in order not to bloat this blog post with irrelevant comments)<br
/> Tnx!</p> ]]></content:encoded> </item> <item><title>By: jav</title><link>http://www.cyberciti.biz/tips/howto-log-user-activity-using-process-accounting.html#comment-154296</link> <dc:creator>jav</dc:creator> <pubDate>Mon, 15 Mar 2010 14:42:49 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-log-user-activity-using-process-accounting.html#comment-154296</guid> <description>Snoopy compiles and loads, but so far it seems to work only to log root commands, and I modified snoopy.h
#define SNOOPY_ROOT_ONLY 0
with both 0 or 1, makes no difference, keeps logging only root commands.</description> <content:encoded><![CDATA[<p>Snoopy compiles and loads, but so far it seems to work only to log root commands, and I modified snoopy.h<br
/> #define SNOOPY_ROOT_ONLY 0<br
/> with both 0 or 1, makes no difference, keeps logging only root commands.</p> ]]></content:encoded> </item> <item><title>By: Bostjan Skufca</title><link>http://www.cyberciti.biz/tips/howto-log-user-activity-using-process-accounting.html#comment-153435</link> <dc:creator>Bostjan Skufca</dc:creator> <pubDate>Wed, 10 Feb 2010 02:10:12 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-log-user-activity-using-process-accounting.html#comment-153435</guid> <description>Try snoopy logger. I&#039;ve just updated it and it works ok for me now.
&lt;a href=&quot;https://sourceforge.net/projects/snoopylogger/&quot; title=&quot;Snoopy Logger&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/projects/snoopylogger/&lt;/a&gt;</description> <content:encoded><![CDATA[<p>Try snoopy logger. I&#8217;ve just updated it and it works ok for me now.<br
/> <a
href="https://sourceforge.net/projects/snoopylogger/" title="Snoopy Logger" rel="nofollow">https://sourceforge.net/projects/snoopylogger/</a></p> ]]></content:encoded> </item> <item><title>By: Deleriux</title><link>http://www.cyberciti.biz/tips/howto-log-user-activity-using-process-accounting.html#comment-150776</link> <dc:creator>Deleriux</dc:creator> <pubDate>Wed, 23 Sep 2009 12:15:20 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-log-user-activity-using-process-accounting.html#comment-150776</guid> <description>Oh, and to check audit you need to run something such as
&lt;code&gt;
ausearch -ts recent -m tty
&lt;/code&gt;</description> <content:encoded><![CDATA[<p>Oh, and to check audit you need to run something such as<br
/> <code><br
/> ausearch -ts recent -m tty<br
/> </code></p> ]]></content:encoded> </item> <item><title>By: Deleriux</title><link>http://www.cyberciti.biz/tips/howto-log-user-activity-using-process-accounting.html#comment-150775</link> <dc:creator>Deleriux</dc:creator> <pubDate>Wed, 23 Sep 2009 12:14:16 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-log-user-activity-using-process-accounting.html#comment-150775</guid> <description>You should probably remove disable=* as it makes the thing a little ambiguous.</description> <content:encoded><![CDATA[<p>You should probably remove disable=* as it makes the thing a little ambiguous.</p> ]]></content:encoded> </item> <item><title>By: Fahim</title><link>http://www.cyberciti.biz/tips/howto-log-user-activity-using-process-accounting.html#comment-150760</link> <dc:creator>Fahim</dc:creator> <pubDate>Tue, 22 Sep 2009 23:45:27 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-log-user-activity-using-process-accounting.html#comment-150760</guid> <description>Thanks Deleriux, I tried that but no luck :S. It seems im getting it wrong somewhere:
[fimz@localhost ~]$ sudo vim /etc/pam.d/sshd
[fimz@localhost ~]$ cat /etc/pam.d/sshd
#%PAM-1.0
auth       include      system-auth
account    required     pam_nologin.so
account    include      system-auth
password   include      system-auth
session    optional     pam_keyinit.so force revoke
session    include      system-auth
session    required     pam_loginuid.so
session    required     pam_tty_audit.so disable=* enable=*
[fimz@localhost ~]$ date
Wed Sep 23 11:29:16 NZST 2009
[fimz@localhost ~]$ sudo su -
[root@localhost ~]# service sshd restart
Stopping sshd:                                             [  OK  ]
Starting sshd:                                             [  OK  ]
login as: fimz
fimz@X.Y.2.3&#039;s password:
Last login: Wed Sep 23 11:24:02 2009 from it029481.xyz.org
[fimz@localhost ~]$
[fimz@localhost ~]$ ls
Desktop
[fimz@localhost ~]$ ls -a
.              .bashrc   .gconfd          .gtkrc-1.2-gnome2  .redhat
..             Desktop   .gnome           .ICEauthority      .Trash
.bash_history  .dmrc     .gnome2          .metacity          .viminfo
.bash_logout   .eggcups  .gnome2_private  .mozilla
.bash_profile  .gconf    .gstreamer-0.10  .nautilus
[fimz@localhost ~]$ ls -l
total 8
drwxr-xr-x 2 fimz fimz 4096 Sep 10 16:02 Desktop
[fimz@localhost ~]$ mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
[fimz@localhost ~]$ date
Wed Sep 23 11:31:05 NZST 2009
[fimz@localhost ~]$ sudo grep mount /var/log/*
/var/log/secure:Sep 23 11:31:56 localhost sudo:     fimz : TTY=pts/1 ; PWD=/home/fimz ; USER=root ; COMMAND=/bin/grep mount /var/log/acpid /var/log/anaconda.log /var/log/anaconda.syslog /var/log/anaconda.xlog /var/log/audit /var/log/boot.log /var/log/boot.log.1 /var/log/boot.log.2 /var/log/btmp /var/log/conman /var/log/conman.old /var/log/cron /var/log/cron.1 /var/log/cron.2 /var/log/cups /var/log/dmesg /var/log/faillog /var/log/gdm /var/log/httpd /var/log/lastlog /var/log/mail /var/log/maillog /var/log/maillog.1 /var/log/maillog.2 /var/log/messages /var/log/messages.1 /var/log/messages.2 /var/log/news /var/log/pm /var/log/ppp /var/log/prelink /var/log/rpmpkgs /var/log/rpmpkgs.1 /var/log/rpmpkgs.2 /var/log/samba /var/log/scrollkeeper.log /var/log/secure /var/log/secure.1 /var/log/secure.2 /var/log/setroubleshoot /var/log/spooler /var/log/spooler.1 /var/log/spooler.2 /var/log/squid /var/log/tallylog /var/log/vbox /var/log/wtmp /var/log/Xorg.0.log /var/log/Xorg.0.log.old /var/log/yum.log
I was expecting it to log to messages, but apparently its not!</description> <content:encoded><![CDATA[<p>Thanks Deleriux, I tried that but no luck :S. It seems im getting it wrong somewhere:</p><p>[fimz@localhost ~]$ sudo vim /etc/pam.d/sshd<br
/> [fimz@localhost ~]$ cat /etc/pam.d/sshd<br
/> #%PAM-1.0<br
/> auth       include      system-auth<br
/> account    required     pam_nologin.so<br
/> account    include      system-auth<br
/> password   include      system-auth<br
/> session    optional     pam_keyinit.so force revoke<br
/> session    include      system-auth<br
/> session    required     pam_loginuid.so<br
/> session    required     pam_tty_audit.so disable=* enable=*<br
/> [fimz@localhost ~]$ date<br
/> Wed Sep 23 11:29:16 NZST 2009<br
/> [fimz@localhost ~]$ sudo su -<br
/> [root@localhost ~]# service sshd restart<br
/> Stopping sshd:                                             [  OK  ]<br
/> Starting sshd:                                             [  OK  ]<br
/> login as: fimz<br
/> fimz@X.Y.2.3&#8242;s password:<br
/> Last login: Wed Sep 23 11:24:02 2009 from it029481.xyz.org<br
/> [fimz@localhost ~]$<br
/> [fimz@localhost ~]$ ls<br
/> Desktop<br
/> [fimz@localhost ~]$ ls -a<br
/> .              .bashrc   .gconfd          .gtkrc-1.2-gnome2  .redhat<br
/> ..             Desktop   .gnome           .ICEauthority      .Trash<br
/> .bash_history  .dmrc     .gnome2          .metacity          .viminfo<br
/> .bash_logout   .eggcups  .gnome2_private  .mozilla<br
/> .bash_profile  .gconf    .gstreamer-0.10  .nautilus<br
/> [fimz@localhost ~]$ ls -l<br
/> total 8<br
/> drwxr-xr-x 2 fimz fimz 4096 Sep 10 16:02 Desktop<br
/> [fimz@localhost ~]$ mount<br
/> /dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)<br
/> proc on /proc type proc (rw)<br
/> sysfs on /sys type sysfs (rw)<br
/> devpts on /dev/pts type devpts (rw,gid=5,mode=620)<br
/> /dev/sda1 on /boot type ext3 (rw)<br
/> tmpfs on /dev/shm type tmpfs (rw)<br
/> none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)<br
/> sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)<br
/> [fimz@localhost ~]$ date<br
/> Wed Sep 23 11:31:05 NZST 2009</p><p>[fimz@localhost ~]$ sudo grep mount /var/log/*<br
/> /var/log/secure:Sep 23 11:31:56 localhost sudo:     fimz : TTY=pts/1 ; PWD=/home/fimz ; USER=root ; COMMAND=/bin/grep mount /var/log/acpid /var/log/anaconda.log /var/log/anaconda.syslog /var/log/anaconda.xlog /var/log/audit /var/log/boot.log /var/log/boot.log.1 /var/log/boot.log.2 /var/log/btmp /var/log/conman /var/log/conman.old /var/log/cron /var/log/cron.1 /var/log/cron.2 /var/log/cups /var/log/dmesg /var/log/faillog /var/log/gdm /var/log/httpd /var/log/lastlog /var/log/mail /var/log/maillog /var/log/maillog.1 /var/log/maillog.2 /var/log/messages /var/log/messages.1 /var/log/messages.2 /var/log/news /var/log/pm /var/log/ppp /var/log/prelink /var/log/rpmpkgs /var/log/rpmpkgs.1 /var/log/rpmpkgs.2 /var/log/samba /var/log/scrollkeeper.log /var/log/secure /var/log/secure.1 /var/log/secure.2 /var/log/setroubleshoot /var/log/spooler /var/log/spooler.1 /var/log/spooler.2 /var/log/squid /var/log/tallylog /var/log/vbox /var/log/wtmp /var/log/Xorg.0.log /var/log/Xorg.0.log.old /var/log/yum.log</p><p>I was expecting it to log to messages, but apparently its not!</p> ]]></content:encoded> </item> <item><title>By: Deleriux</title><link>http://www.cyberciti.biz/tips/howto-log-user-activity-using-process-accounting.html#comment-150757</link> <dc:creator>Deleriux</dc:creator> <pubDate>Tue, 22 Sep 2009 22:16:31 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-log-user-activity-using-process-accounting.html#comment-150757</guid> <description>Yeah, pass it something like:
&lt;code&gt;
session     required     pam_tty_audit.so enable=*
&lt;/code&gt;
To the pam stack.</description> <content:encoded><![CDATA[<p>Yeah, pass it something like:<br
/> <code><br
/> session     required     pam_tty_audit.so enable=*<br
/> </code></p><p>To the pam stack.</p> ]]></content:encoded> </item> <item><title>By: Fahim</title><link>http://www.cyberciti.biz/tips/howto-log-user-activity-using-process-accounting.html#comment-150746</link> <dc:creator>Fahim</dc:creator> <pubDate>Tue, 22 Sep 2009 02:36:21 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-log-user-activity-using-process-accounting.html#comment-150746</guid> <description>Hi,
pam_tty_audit is kool, but problem is that it logs only root level stuff. Is there anyway to make it log user level tty input without patching it?
Thanks</description> <content:encoded><![CDATA[<p>Hi,<br
/> pam_tty_audit is kool, but problem is that it logs only root level stuff. Is there anyway to make it log user level tty input without patching it?</p><p>Thanks</p> ]]></content:encoded> </item> <item><title>By: Deleriux</title><link>http://www.cyberciti.biz/tips/howto-log-user-activity-using-process-accounting.html#comment-150539</link> <dc:creator>Deleriux</dc:creator> <pubDate>Sat, 05 Sep 2009 23:35:59 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-log-user-activity-using-process-accounting.html#comment-150539</guid> <description>A more suitable way on modern distros (Centos 5 + ) is to install the pam_tty_audit pam module and place it into a pam stack for say, login or sshd.
This will produce a key by key typing of what was pressed inside the session. (including, up, down backspace, etc)
You can use ausearch to look through it.
I.E &quot;ausearch -ts recent -m tty -i&quot;</description> <content:encoded><![CDATA[<p>A more suitable way on modern distros (Centos 5 + ) is to install the pam_tty_audit pam module and place it into a pam stack for say, login or sshd.</p><p>This will produce a key by key typing of what was pressed inside the session. (including, up, down backspace, etc)</p><p>You can use ausearch to look through it.</p><p>I.E &#8220;ausearch -ts recent -m tty -i&#8221;</p> ]]></content:encoded> </item> <item><title>By: Fahim</title><link>http://www.cyberciti.biz/tips/howto-log-user-activity-using-process-accounting.html#comment-150431</link> <dc:creator>Fahim</dc:creator> <pubDate>Mon, 31 Aug 2009 08:18:06 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-log-user-activity-using-process-accounting.html#comment-150431</guid> <description>Hi,
Im interested to know is there a way to log all keystrokes including typos &amp; complete command parameters with this say $rm -rf /* or custom scripts such as $./foo 10.0.0.1
My requirement is to log *EVERYTHING* the command and its associated flags and parameters.
Thanks</description> <content:encoded><![CDATA[<p>Hi,</p><p>Im interested to know is there a way to log all keystrokes including typos &amp; complete command parameters with this say $rm -rf /* or custom scripts such as $./foo 10.0.0.1<br
/> My requirement is to log *EVERYTHING* the command and its associated flags and parameters.</p><p>Thanks</p> ]]></content:encoded> </item> <item><title>By: Rahul Panwar</title><link>http://www.cyberciti.biz/tips/howto-log-user-activity-using-process-accounting.html#comment-150397</link> <dc:creator>Rahul Panwar</dc:creator> <pubDate>Fri, 28 Aug 2009 10:05:45 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-log-user-activity-using-process-accounting.html#comment-150397</guid> <description>I started the &quot;psacct&quot; service, but still &quot;accton&quot; is not showing any output while other commands are working like sa, lastcomm &amp; ac.
Where am i doing wrong?</description> <content:encoded><![CDATA[<p>I started the &#8220;psacct&#8221; service, but still &#8220;accton&#8221; is not showing any output while other commands are working like sa, lastcomm &amp; ac.<br
/> Where am i doing wrong?</p> ]]></content:encoded> </item> </channel> </rss>
