sniff /dev/tty

hello all,

Being root, I would like to log user activity (also multiple root activity), i don't really like
history file based logging, lets assume that users have access to their .profile.

I would like to write a monitoring daemon in C that would capture /dev/ttys,
so I need to do a non-blocking read to the stream ...

any ideas?

thanks a lot. :slight_smile: