Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Telnet Server, how to log logins
benellism90
post Oct 14 2003, 03:22 AM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 1
Joined: 14-October 03
Member No.: 1,617



I am running SuSE 8.2, and I want to set it to write to a logfile when someone logs into it. How do I do this?
Go to the top of the page
 
+Quote Post
hughesjr
post Oct 14 2003, 07:09 AM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



When someone logs in, it is already written to the syslog. In RedHat there is also a log called /var/log/secure that logs every login...it isn't there by default in SUSE, but you can do this to get an up to date log...

cat /var/log/messages | grep user > login_log_filename

This will give you a list of all Console logins.

For a list of telnet/ssh2 logins use this command:

cat /var/log/messages | grep Accepted > login_log_filename

substitute the file name you want to save to as login_log_filename


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 21st October 2017 - 05:35 AM