- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- log every keystorke of a user
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2006 08:22 PM
01-14-2006 08:22 PM
Is there a way to log absolute every keystorke of a user ? for example, user root.
thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2006 09:05 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2006 06:09 AM
01-15-2006 06:09 AM
Re: log every keystorke of a user
HISTFILE=/root/.bash_history
HISTSIZE=5000
export HISTFILE HISTSIZE
Its standard in the bash shell. .bash_profile
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2006 10:49 AM
01-15-2006 10:49 AM
Re: log every keystorke of a user
Thanks for your reply, history file does not do the job I want.
History files only has record of all the commands, what I want to do is to record all the keystorkes, including typing errors. The log will happen on both local and a remote log host. History files can be deleted and modified easily.
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2006 06:12 PM
01-15-2006 06:12 PM
Re: log every keystorke of a user
if u got $$$, take a look at this:
http://www.symark.com/powerbroker.htm
else, another way is to use the script command which u define in the user's profile. "man script" for more detail.
regards.
(p.s. wat happen to the post u started on "interesting...")
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2006 06:48 PM
01-15-2006 06:48 PM
Re: log every keystorke of a user
The HISTFILE logs mistakes if enter is hit.
This level of monitoring, if applied to all users can impede performance. If only for root, the HISTFILE is a good enough tool.
Good Luck,
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2006 09:13 PM
01-15-2006 09:13 PM
Re: log every keystorke of a user
If what you need is to log everything for someone you gave priv to "like root for install of a product/applic" you can ask then to use something like the following.
ssh 'hostname' | tee install_product.log
every modification will be in the install_product.log and if you keep an eye on the content of last and use command stat you will be able to figure out if the file has been edited/modified after log out.
Hope this is helps.
Jean-Pierre Huc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2006 10:39 PM
01-15-2006 10:39 PM
Re: log every keystorke of a user
You can also configure auditing, take in account that if you configure the HISTORY variables, root can easily modify that configurations.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2006 02:40 AM
01-16-2006 02:40 AM
Re: log every keystorke of a user
snoop the tty. Highly invasive though.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2006 02:55 AM
01-16-2006 02:55 AM
Re: log every keystorke of a user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2006 10:05 AM
01-16-2006 10:05 AM
Re: log every keystorke of a user
Thanks to all your replies, the reason I want to do this is that someone is trying to login into my homenetwork everyday. Last Thuresday, a guy from Japan spent 7.5 hours running a program to guess my root password.
Now I have a dual firewall setup, first one is a cisco router and second is a Linux based Firewall/VPN application. I also want to setup a honey port to let those people get in and then I can study them, get some idea what they want, so I would like to know every keystorkes for a specific user. Also this log must happen on a remote host as well, because these files can be easily destoried on a host they can login.
thanks again :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2006 10:17 AM
01-16-2006 10:17 AM
Re: log every keystorke of a user
Where can I find that software you mentioned ? I also think tty is the correct direction as all these users only has remote access.
Just remembered something is it possible to do this when a user login using ssh ? Maybe I should modify ssdh source code to do this :)
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2006 08:45 PM
01-16-2006 08:45 PM
Re: log every keystorke of a user
I suggest you do the following:
1) Knowing the guys keystrokes will not help. STOP the login.
2) Disable telnet in /etc/xinetd.d/ service restart xinetd if it was disable=no
3) Have your firewalls limit ssh login to known good addresses. You can include a range that includes your home ISP if you work on the system at home. If necessary, use a simple iptables setup to stop this. This is serious and can't wait for a software installation that will not help stop the abuse.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2006 10:52 PM
01-16-2006 10:52 PM
Re: log every keystorke of a user
you will find more info on this at
http://denyhosts.sourceforge.net/
but first as pointed out by SEP i would shut every thing not know to be safe .. It may also be that your system is now too compromise/suspect... you have good restorable backup ? or maybe this is not a very important system ?
anyhow the above tool is good to have!
Jean-Pierre Huc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2006 02:39 AM
01-17-2006 02:39 AM
Re: log every keystorke of a user
Final note -- you'll want to preserve as best you can your evidence. Do a search on "chain of custody" at any good CISSP web site.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2006 01:04 PM
01-17-2006 01:04 PM
Re: log every keystorke of a user
thanks again for your replies, setup a honey port and let them login to that host and study them that is what I want to do. Currently my firewall/access control list and very strong passwords are doing a good job for me. I am not saying no one can break in but I do not think someone will spend that amount of time and resources to try to break into my home network. Even if they break in, there is nothing there :)
So, I want to let them login (SSH only of course) and I want to know what they are looking for and what they want to do, do you think the first thing they do is to destory my hard disk ? It would be very interesting to find out, wouldn't ? :)
Will take all your advices and have a look at all the tools recommended by your guys thanks again
thanks