![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Finding The Number Of Programs That A Given User Running On A TERMINAL | venkata.ganesh | Shell Programming and Scripting | 4 | 05-22-2007 03:23 AM |
| Tracing a user and logging his actions | adel8483 | SUN Solaris | 2 | 03-28-2007 04:24 PM |
| Auditing User's actions | Timberland | HP-UX | 3 | 01-28-2006 06:53 AM |
| Help with simple scripting actions | Nads | Shell Programming and Scripting | 5 | 04-28-2005 08:42 PM |
| actions based on file type | kristy | Shell Programming and Scripting | 1 | 11-19-2001 02:29 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
see user's actions from another terminal
I would like to know if there is a way to see what a user is doing from another terminal.
I want to be able to see exactly what they see on their terminal. Is that possible ? |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Im running Red Hat Linux 6.2
|
|
#3
|
|||
|
|||
|
try the w command
|
|
#4
|
|||
|
|||
|
Try a 'tty' to see the terminal number.
Then cat /dev/tty0 > tty0.log 'cat tty0.log' or 'more tty0.log' Or try 'cat ~user/.history' or 'more ~user/.history'. |
|
#5
|
||||
|
||||
|
The default shell in Redhat has been bash for as long as I've used it.
The history will be found in /home/username/.bash_history by default. One thing that bash does, though, is saves the command history in memory, not writing to the .bash_history file until the user ends that session. Redhat (probably, other Linux variants have it as well) does have a few good monitoring utilities available, though. Check the man page on "ttysnoop", and man "vcs". You can get a screenshot of a terminal by simply using cat. For example: cat /dev/vcs0 > /root/tty0_log more /root/tty0_log |
||||
| Google The UNIX and Linux Forums |