see user's actions from another terminal


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users see user's actions from another terminal
# 1  
Old 04-05-2002
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 ?
# 2  
Old 04-05-2002
Im running Red Hat Linux 6.2
# 3  
Old 04-06-2002
try the w command
# 4  
Old 04-08-2002
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  
Old 04-09-2002
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
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. OS X (Apple)

Help w/ save and executing terminal actions

Hey everyone, Being new to the deeper levels of OS X and UNIX I am hoping the bright minds on the board could push me in the right direction. On a daily basis I work as a CG Generalist (creating 3D for film) and I am using a 3th party render engine with my main 3D program (Autodesk Maya)... (0 Replies)
Discussion started by: SofusGraae
0 Replies

2. Solaris

Tracing a user and logging his actions

Dear All, I want to enable the tracing for a user and logging all things he do in a log file.......... Thaaanks (2 Replies)
Discussion started by: adel8483
2 Replies

3. HP-UX

Auditing User's actions

Hi all I hope to find what i'm looking for in this forum as said in the topic i want to track user's actions on the system. i mean also the action of moving or removing files. I have an HP 9000 with HP UX 11i. the users log on the HP from a terminal window under WIndows XP Thx (3 Replies)
Discussion started by: Timberland
3 Replies

4. Shell Programming and Scripting

What are the differences between 'bash' and 'sh'

Hopefully this doesn't come off as too much of a "newbie" question or a flamebait. But I have recently begun working with a Sun Solaris box after having spent the past five years working with RedHat. From what i can tell, thing look fairly similar and the 'man' command is some help. But I've... (7 Replies)
Discussion started by: deckard
7 Replies

5. UNIX for Advanced & Expert Users

How to remove a file with a leading dash '-' in it's name?

Somehow someone created a file named '-ov' in the root directory. Given the name, the how was probably the result of some cpio command they bozo'ed. I've tried a number of different ways to get rid of it using * and ? wildcards, '\' escape patterns etc.. They all fail with " illegal option --... (3 Replies)
Discussion started by: GSalisbury
3 Replies

6. UNIX for Dummies Questions & Answers

quoting echo 'it's friday'

echo 'it's friday' why appear the > (3 Replies)
Discussion started by: yls177
3 Replies

7. UNIX for Advanced & Expert Users

Terminal 'Local Echo' lost on Modem Dial-out

Can anybody help me? I am developing a utility for automating message paging to a BT alphanumeric pager. I am using a USR 56K Fax-modem connected to /dev/cuab on a Sun Ultra-10. I am using the UNIX 'tip' utility to connect to the modem and I have configured the modem as follows: Baud Rate:... (2 Replies)
Discussion started by: mybeat
2 Replies

8. Shell Programming and Scripting

Clearify what it means under 'WHAT' when hit the 'w'-command

I wonder how I shall read the result below, especially 'what' shown below. The result was shown when I entered 'w'. E.g what is TOP? What is gosh ( what does selmgr mean?)? login@ idle JCPU PCPU what 6:15am 7:04 39 39 TOP 6:34am 6:45 45 45 TOP 6:41am ... (1 Reply)
Discussion started by: Aelgen
1 Replies

9. UNIX for Dummies Questions & Answers

hit 'enter' with no user intervention

I'd like to write a shell script that will enter '1', for example. How do you do that? You know, so instead of writing echo "Enter 1 or 2" read onetwo and waiting for the user to enter a 1 or 2, I'd like the script to act like someone entered a 1, or 2. Is there a hex value for the... (1 Reply)
Discussion started by: jpprial
1 Replies

10. UNIX for Dummies Questions & Answers

Using telnet client from MacOSX's command line terminal

I'm completely new to Unix, but familiar with Mac OSX. I've just discovered the command line terminal feature of this new OS and I'm trying to learn how to telnet into my host's server to change permissions to allow executable cgi scripts for my website. Is there anyone who might be able to... (2 Replies)
Discussion started by: tylerl
2 Replies
Login or Register to Ask a Question