Operating System - HP-UX
1836820 Members
1752 Online
110110 Solutions
New Discussion

Re: ftp access on syslogd

 
SOLVED
Go to solution
Benedetto Mangiapane
Frequent Advisor

ftp access on syslogd

Hi,
is possible to view, users ftp IP address on syslogd, adding a local*.info into syslog.conf?
More simply...
When a user from one system (S1), open ftpd session to another system (S2), on S2 syslog.log is possible to trace a IP address of S1?

Thanks.
Regards.
5 REPLIES 5
RolandH
Honored Contributor
Solution

Re: ftp access on syslogd

in the file /etc/inetd.conf add the -l (el) option after the ftpd entry.
Then do a inetd -c for re-reading inetd config.

Then all will be logged in syslog.

Entry in /etc/inetd.conf:

ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l
Sometimes you lose and sometimes the others win
Benedetto Mangiapane
Frequent Advisor

Re: ftp access on syslogd

For RolandH,
Its just my configuration...
In my inetd.conf there is:
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l -a
but not IP address appears in syslog.log...

Only a pid appears...
Dwyane Everts_1
Honored Contributor

Re: ftp access on syslogd

Benedetto,

Please change the "l" (elle) to "L".

Hope this helps...
Dwyane
harry d brown jr
Honored Contributor

Re: ftp access on syslogd

Dwayne, If you use the L option you have the potential of logging users passwords into syslog. This can occur if the user doesn't pay attention to the ftp prompts, thus the "l" option is fine.

live free or die
harry d brown jr
Live Free or Die
Benedetto Mangiapane
Frequent Advisor

Re: ftp access on syslogd

Not are -l or -L the right way, because these options not put into a syslog.log the information of IP address of client system!
...
What is the right way?
Bye.