Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to set up ftp log ?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I have ftp log in the following manner.
first edit the syslog.conf file with
!ftpd
*.* /var/log/ftpd.log
then creat the file ftpd.log and restart the inet and syslogd process
Please tell me what part i'm missing or what could be wrong ftp log is not collecting in /var/log/ftpd/log file.
Please tell me, if there is any other way to collect ftp log.
Thanks
Copycater
 
You need to add -l to ftp service in inetd.conf and you could also add the -d for debug. This is bascially what your line inetd.conf should look.

ftp stream tcp nowait root /usr/sbin/in.ftpd in.ftpd -d -l

This should be all one line though.
 
adding -d and -l into the /etc/inetd.conf did not work. My /var/log/ftpd.log file is till empty.
 
adding -d and -l into the /etc/inetd.conf did not work. My /var/log/ftpd.log file is still empty.
 
Did you restart inetd and syslog.
kill -HUP inetd-pid
kill -HUP syslog-pid
You could also use the last command and grep for ftp. You should be sure when you added your info in syslog.conf that you used tabs and not spaces, don't ask me why that's just the way it is.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top