|
FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|
|||
inetd, ftpd problems
I'm having issues with inetd/ftpd on a FreeBSD 5.1 server. Apparently any time the server is rebooted, the inetd process starts, as it's running on the process list and there's an inetd.pid file in /var/run. However, ftp connections are not accepted, and I then have to start ftpd manually.
Here is a portion of my rc.conf file (the lines after all the ipconfig lines and other network settings): inetd_enable="YES" # Run the network daemon dispatcher (YES/NO). kern_securelevel_enable="NO" sendmail_enable="YES" sshd_enable="YES" usbd_enable="YES" apache_enable="YES" ftpd_enable="YES" All lines in my inetd.conf file are commented out other than these two: ftp stream tcp nowait root /usr/libexec/ftpd ftpd -l ftp stream tcp6 nowait root /usr/libexec/ftpd ftpd -l First off, did I properly enable my server to accept ftp connections? Every installation guide I've seen basically said enabling inetd and uncommenting those lines in inetd.conf would do it, but that's not the case in my experience so far. Secondly, I'm not beholden to using the BSD ftp, but it's simple and basically all I need it to do is chroot users to their home directories. If anyone has any suggestions on another ftp daemon that's decent, I'm open to using it. Thanks, James |
|
|||
If you're enabling ftpd via inetd, why are you enabling it in rc.conf?
Either enable it in rc.conf or inetd.conf, not both. |
|
|||
Quote:
or by grepping through /etc/default/rc.conf for "ftpd" in my install. So I don't think that line in the rc.conf meant anything and was ignored, but that still doesn't explain why inetd wasn't listening for FTP requests. Besides if inetd_enable and ftpd_enable were both supported and both worked, I would have assumed the ftpd_enable line would have caused a error to be logged somewhere mentioning a service already listening on port 21. I never found any such error messages. |
|
|||
Quote:
http://www.proftpd.org/docs/howto/Chroot.html Additionally, must you run 5.1? |
|
|||
Quote:
This weekend I get paid double overtime to set up a new server to migrate an old production server to, since it failed temporarily this past week. So FreeBSD 7 it will be. Though given that the services/apps on that server haven't been updated in at least 4 years, I'll have my work cut out for me. |
|
|||
If ftp is running, whether that be from inetd or as standalone, it will show as a LISTEN in netstat -an output.
Code:
$ netstat -an -f inet Active Internet connections (including servers) Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp 0 0 *.21 *.* LISTEN tcp 0 0 *.6000 *.* LISTEN tcp 0 0 127.0.0.1.587 *.* LISTEN tcp 0 0 127.0.0.1.25 *.* LISTEN tcp 0 0 *.22 *.* LISTEN tcp 0 0 *.515 *.* LISTEN Active Internet connections (including servers) Proto Recv-Q Send-Q Local Address Foreign Address (state) udp 0 0 192.168.222.20.2012 194.165.35.111.123 udp 0 0 192.168.222.20.7197 145.24.129.5.123 udp 0 0 192.168.222.20.4237 213.154.229.26.123 udp 0 0 192.168.222.20.3805 130.89.164.77.123 udp 0 0 192.168.222.20.14453 213.249.66.35.123 udp 0 0 *.514 *.* Code:
$ pgrep inetd 26811 $ ps -aux | grep inetd root 26811 0.0 0.1 440 840 ?? Is 12:53AM 0:00.00 inetd
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
|||
I would suggest vsftpd. ftp.freebsd.org is using it
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
||||
Quote:
Flexible, "secure" (as ftpd services go), well documented, actively developed, etc.
__________________
Kill your t.v. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ftpd problem | narcotico | FreeBSD General | 3 | 11th July 2008 03:08 AM |
ftpd and hiding . files | crofox | OpenBSD Packages and Ports | 5 | 26th June 2008 03:01 AM |
pure-ftpd | hirohitosan | FreeBSD Ports and Packages | 3 | 10th June 2008 06:31 PM |
FTPD User Access Denied | wastedbreath | FreeBSD General | 7 | 21st May 2008 03:44 AM |
Runing vsftpd in standalone mode or with inetd? | bigb89 | FreeBSD Security | 2 | 8th May 2008 11:38 PM |