LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 07-09-2007, 12:40 AM   #1
skleung
LQ Newbie
 
Registered: Jul 2007
Posts: 3

Rep: Reputation: 0
How to view command executed via GUI


Hi,
When the command executed via terminal, I can get the list of previous executed command by "history". If the execution of command is done via GUI, how can I get the list of command executed? Please advise, thanks.

SK
 
Old 07-09-2007, 03:14 AM   #2
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,850

Rep: Reputation: 350Reputation: 350Reputation: 350Reputation: 350
Your question is not very clear. Exactly where are you typing in these commands from the GUI? Some sort of "Run:" dialog?

If that is the case, then it would depend on the WM/DE being used. Some may keep a history, others may not.
 
Old 07-09-2007, 04:11 AM   #3
skleung
LQ Newbie
 
Registered: Jul 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Hi,
What I want to do is to log down the command executed on the server by anyone who access the server by command line or using the graphical tools.
I found that the command "history" lists the command executed in the current session only, it cannot view the executed commands in another terminal session.
Please advise how to log down the command executed on the server, thanks.

SK
 
Old 07-09-2007, 04:25 AM   #4
SlackDaemon
Member
 
Registered: Mar 2006
Distribution: RedHat, Slackware, Experimenting with FreeBSD
Posts: 222

Rep: Reputation: 30
Assuming you are the administrator of the server and have the authority to do this, you will need to install a key logger application to record all keystrokes regardless of terminal used.

Alternately, you could write a script to dump the contents of .bash_history for each user when they logout. This is less reliable as it can be easily bypassed.

Last edited by SlackDaemon; 07-09-2007 at 04:52 AM.
 
Old 07-09-2007, 05:18 AM   #5
skleung
LQ Newbie
 
Registered: Jul 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Hi,
1) Do you know whether there is any free key logger for Linux? If yes, where to get it.
2) For the .bash_history, it only records the command entered via terminal. Say for example I click "Applications-->System Config-->User and Group" to modify the user, there is no "system-config-users" being logged in .bash_history. Please advise how to log the command executed via GUI.

Thanks.

SK
 
Old 07-09-2007, 05:32 AM   #6
SlackDaemon
Member
 
Registered: Mar 2006
Distribution: RedHat, Slackware, Experimenting with FreeBSD
Posts: 222

Rep: Reputation: 30
Quote:
Originally Posted by skleung
2) For the .bash_history, it only records the command entered via terminal. Say for example I click "Applications-->System Config-->User and Group" to modify the user, there is no "system-config-users" being logged in .bash_history. Please advise how to log the command executed via GUI.
And thats why you will need to write a script to dump each user's .bash_history to a central location. Usually you would do this in their .bash_logout file.

I have not tried this through a GUI app, and most key loggers for Linux are command line based too. You will need to get your hands dirty and perform a google search for a 'Linux keylogger'. There are plenty around.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
View commands being executed in Xwindows DMeerholz Linux - Software 1 06-20-2007 07:40 AM
Where does GUI get executed ? Sanborn Suse/Novell 7 06-15-2007 02:08 PM
how to see which command has been executed ? Volcano Linux - Newbie 4 12-11-2006 08:48 AM
Command line utlility to view user info like the GUI one? ivj Linux - Newbie 1 07-27-2004 06:44 AM
How do I undo last command executed? Elfking Linux - General 4 02-05-2004 01:18 AM


All times are GMT -5. The time now is 01:38 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration