On Friday 03 February 2006 14:09, you wrote:
> Hey,
>
> Is it possible to see what commands a user is typing as they happen? I'd
> "tail -f .bash_history", but it doesn't seem to update until the user logs
> out. Where does it store it during the active session?
>
> I have given a vendor root access to one of my servers so they can fix a
> database that I broke, and I want to see what he is doing (for educational
> purposes rather than lack of trust).
You might be able to do something cool like
script -fqa -c /bin/bash /tmp/script_log
check out man script.
I have had a little play and can watch input/output in realtime by doing a
tail -f /tmp/script_log
even works in vim et al
It probably wouldn't take much to make it a users login shell or something.
HTH
hads
--
The idea is to die young as late as possible.
-- Ashley Montague