1834408 Members
1902 Online
110067 Solutions
New Discussion

Re: monitor

 
Fadia Almarei
Super Advisor

monitor

how to monitor which user log to my system by which ip rather than syslog.log file .
fadia.marei
6 REPLIES 6
Stf
Esteemed Contributor

Re: monitor

Hello,

You can use the command :

# who -R

Otherwise see the man page of who command for much precision...

Stf ;-)
Ivajlo Yanakiev
Respected Contributor

Re: monitor

Also You can use
ps ef |grep sh
netstat -an
lsof
Abdul Majeed Lardhi
Regular Advisor

Re: monitor

Hi
you can use :
finger -R

Regards
Abdul Majeed
G. Vrijhoeven
Honored Contributor

Re: monitor

Hi,

You could also check trhe last command.

Regards,

Gideon
Stephen Keane
Honored Contributor

Re: monitor

If you want to write a program, you could always look at /etc/wtmp. See man 4 wtmp, and man 3c getut, for details.
Stephen Keane
Honored Contributor

Re: monitor

Something like this (see attached)?

cc fred.c -ofred