Operating System - HP-UX
1833913 Members
2828 Online
110063 Solutions
New Discussion

How to force telnetd to log user info into syslog?

 
SOLVED
Go to solution
Lev Assinovsky
Frequent Advisor

How to force telnetd to log user info into syslog?

Hi All!
I found that in HP-UX 11.00 among the system utilities, using login only 'ftpd' and 'su' logs something
(user, host, etc) into syslog. rlogin, telnet
don't log anything. Is there any way to get
at least user name into syslog from telnet?
Thanks.
5 REPLIES 5
Victor BERRIDGE
Honored Contributor

Re: How to force telnetd to log user info into syslog?

Sorry I have no time at the moment to check..
do a man logger to see if can

All the best
Victor
Pete Randall
Outstanding Contributor

Re: How to force telnetd to log user info into syslog?

Lev,

See my answer in your other thread:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=701743


Pete

Pete
Muthukumar_5
Honored Contributor
Solution

Re: How to force telnetd to log user info into syslog?

su and ftpd will be logged. login service informations are stored utmp file. We can manage with last command there.

Bad login will be stored in btmp file there. We can audit with lastb command.

Try to write a script to send audited login informations to /var/adm/syslog/login.log like that so that we can keep track informations.
Easy to suggest when don't know about the problem!
Lev Assinovsky
Frequent Advisor

Re: How to force telnetd to log user info into syslog?

Yes, I can process utmp as well. Not sure
there is a source the user came through
(telnet, rlogin).
Steve Post
Trusted Contributor

Re: How to force telnetd to log user info into syslog?

If you are looking for when/who logged in maybe you could just use something like this.

who am i -u >> /bigdisk/login_times.txt

I have a box where lots of employees log in from different locations (within the intranet). I needed to see who, when and where. So I put this in their main .profile. This was not for tracking root or any other traditional unix id, just the people using this 3rd party application.

You would want to watch the size the file to make sure it doesn't get too big.

Steve