Thread: Monitoring other users on the same machine
yesterday, needed transfer files local machine friend, made guest account on ubuntu desktop , let him grab stuff via scp. good.
however, wondering if there's convenient way keep eye on he's doing, files he's downloading , how long have left, etc. think of far:
* using system monitor system->administration menu, see data still being sent.
* using top or htop see processes guest user running.
* running 'ps -u guest' way see processes.
suppose these okay, top/htop takes looking processes scrolling/sorting , that's little inconvenient. meanwhile, ps command quick, doesn't give detail. instance, if guest user in process of doing scp transfer, ps tell me he's running scp , process number, no details. top/htop tell me exact files being transferred listing whole command.
guess if same detail top/htop gives, convenience of ps, happy. i'm sure there other nice ways of doing too. test, installed wireshark frankly that's little overwhelming simple task this.
input appreciated, cheers!
hi there,
there lots of ways of keeping tabs on people doing on box. you've noticed, none of them offer nicely joined-up solution though.1 pretty low-tech tweak make replace scp short shell script. example ...
pasting terminal (as root) cause system start logging file transfers /tmp/scplog. in practice, you'd want more elaborate, suppose, idea.code:mv /usr/bin/scp /usr/bin/scp.real cat << eof > /usr/bin/scp #!/bin/bash echo \$@ >> /tmp/scplog /usr/bin/scp.real \$@ eof chmod 755 !$
have tried top -u username reduce amount of garbage have scroll through?
ps has lots of options controlling process selection & output formatting. example, ps -u username -o "%c %a" should give names of processes (and arguments) running given user.
if you're interested in more file transfers, might try ...
- run mkfifo /tmp/foobar && script -f /tmp/foobar. terminal should sit there & hang.
- open terminal window , run cat /tmp/foobar.
- now should able use second terminal session watch happens in first.
use i've ever had sort of thing remote assistance (so computer's owner can see how go solving whatever problem they're having). spy on someone, suppose alter guest user's .bashrc every time starts session, gets logged automatically.
anyhow, luck there's here didn't know.
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [all variants] Monitoring other users on the same machine
Ubuntu

Comments
Post a Comment