Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 01 Jan 2008 14:59:54 -0500
From:      Frank <frank.mailinglists@gmail.com>
To:        Anjang Aki <mailman.msc@gmail.com>
Cc:        freebsd-security@freebsd.org
Subject:   Re: Tracking user's activity
Message-ID:  <477A9BBA.3030703@gmail.com>
In-Reply-To: <bcd996c30801011144w431ad591mbcdac9711732ac3e@mail.gmail.com>
References:  <bcd996c30801011144w431ad591mbcdac9711732ac3e@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Anjang Aki wrote:
> Greetings,
>
> I've been looking for a proper way to to track down user's activity
> inside the shell as I'm helping my colleague to configure a web
> hosting and shell hosting server.
>
> Someone have referred me to this article --
> http://bsdtips.utcorp.net/mediawiki/index.php/Snoop which is using
> 'watch' commands to view user's activity once they logged in to the
> server
>
> I found that this 'watch' utility is very useful and are able to
> fulfill my needs but I can only be able to watch the activity once I'm
> logging to the server at the time the users are logging in.
>
> Is there is any way that logging user's activity can be done without a
> need for me to login at the server at the same time? Perhaps the
> activity can be logged into a file and I can read it later.
>
> Or is there is any other utility I can use just to monitor user's
> activity as the server is misused by a user previously and I don't
> want it to happen again in the future.
>
> Best regards,
>
>
>   

Hello!
You can use "script filename" and start doing your stuff. The user can 
press CTRL-D when he's finished doing his stuff so the content can be 
flushed to the file.

Happy new year,
Frank



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?477A9BBA.3030703>