LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-29-2010, 11:38 AM   #1
SkyHiRider
LQ Newbie
 
Registered: Nov 2010
Posts: 5

Rep: Reputation: 0
How to view other users console realtime + log


I need to let a second user configure a part of my server and I wish to both log what the user is doing with terminal and view it in realtime so that I can react if something goes wrong.

Know of a good and easy way to do this?
 
Old 11-29-2010, 05:03 PM   #2
Elv13
Member
 
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Rep: Reputation: 129Reputation: 129
use the "screen" command to create a screen server on the client machine (server) and connect to this screen session from your computer using ssh (ssh to the server) then you can try to use "tee" or I don't know what to log everything, but it will mostly log control sequences, which are not really useful to you.

An other solution would be to use git to store various revision of the file and hook inotify to commit every time the file is closed. This should output you a nice diff all modifications. This plus the real time screen sessions and you should be in business. This will not log the commands executed, but there is .bash_history for that (but it can be bypassed or edited afterward, ot even never loged in the first place if bash is killed).

Last edited by Elv13; 11-29-2010 at 05:04 PM.
 
  


Reply

Tags
log, spyware, terminal



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Realtime log monitor rogerdv Linux - Software 2 08-28-2010 04:30 AM
64Studio realtime kernel and debian lenny realtime module buid error? stratotak Linux - Newbie 0 01-30-2009 10:57 PM
View other Users Shells in Realtime dumbsheep Linux - Server 2 10-16-2008 09:23 AM
how to view the log details of samba users sravanth.svk Fedora 0 10-26-2006 09:31 AM
Realtime Status/Activity View mrlucio79 Linux - Software 0 03-11-2004 07:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:21 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration