bj0
August 5th, 2008, 05:45 PM
Hey, I was trying to configure my kubuntu box to allow ftp connections only from certain computers using hosts.deny/allow, but it didn't seem to be doing anything at all. To test to see if it was even recognizing the daemon name I put 'vsftpd: ALL' in hosts.deny and nothing in hosts.allow, but I can still ftp to the computer from anywhere else. I tried 'ALL: ALL' in hosts.deny and 'sshd: ALL' in hosts.allow, but I can still ftp to the machine.
I am using the vsftpd from the repositories, and it appears to be compiled against libwrap:
> ldd /usr/sbin/vsftpd |grep libwrap
libwrap.so.0 => /lib/libwrap.so.0 (0xb7fc5000)
Now if I run:
> tcpdchk -v
I get an entry that looks like:
daemons: vsftpd
warning: /etc/hosts.deny, line 20: vsftpd: no such process name in /etc/inetd.conf
clients: ALL
access: denied
But there is no initd running, vsftpd is running standalone mode, and the /etc/initd.conf file is empty
> ps -e|grep ftp
567 ? 00:00:00 vsftpd
What am I missing? Is there a way to get a list of daemons affected by hosts.deny?
I am using the vsftpd from the repositories, and it appears to be compiled against libwrap:
> ldd /usr/sbin/vsftpd |grep libwrap
libwrap.so.0 => /lib/libwrap.so.0 (0xb7fc5000)
Now if I run:
> tcpdchk -v
I get an entry that looks like:
daemons: vsftpd
warning: /etc/hosts.deny, line 20: vsftpd: no such process name in /etc/inetd.conf
clients: ALL
access: denied
But there is no initd running, vsftpd is running standalone mode, and the /etc/initd.conf file is empty
> ps -e|grep ftp
567 ? 00:00:00 vsftpd
What am I missing? Is there a way to get a list of daemons affected by hosts.deny?