Logging users activity with termlog

Lukasz Wasikowski idaho at kochana.org
Tue Oct 7 15:57:34 PDT 2003


Hello!

FreeBSD 4.9-RC. termlog 1.0.2-STABLE. I want to log users activity on my
box.

1. I'd like to run termlog -u UID as soon as user with UID log in. How
should I do it?

2. I noticed that running "screen program" and then leaving it (quit, not
detach) makes termlog to quit with:

termlog: fatal: unable to poll device.: Bad file descriptor

User is still logged in. The same quit reason is when user don't use
screen and logout. What's wrong?

3. -t switch should put timestamps in the output file but it doesn't.
Files created with -t and without it are identical.

Maybe there is a better way to log users activity?

-- 
Greetz, Idaho


More information about the freebsd-questions mailing list