LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-30-2004, 10:44 PM   #1
ilaurie
LQ Newbie
 
Registered: Dec 2004
Location: Sydney, Australia
Distribution: RHEL, Fedora, Slackware, FreeBSD
Posts: 2

Rep: Reputation: 0
vsftpd in the hosts.allow file


For some weird reason I'm having problems getting the spawn() function working in the hosts.allow file for vsftpd. The following code:

vsftpd: ALL: \
spawn (echo LAN access to %d, Source ip=%a, Sydney time `date` \
| /bin/mail -s "LAN access to %d" root@localhost) &

hangs any connecting ftp client. The email *does* get sent to root, but the ftp client session is hung and needs to be aborted. Identical code works fine for other daemons that I've tried.

In fact, the only thing that seems to work with vsftpd is the setenv() function. All I need to do is flag root with an email when someone tries to connect to vsftpd.

I can demonstrate this behavior on Fedora Core 3 and Red Hat Enterprise Linux 3.

Any ideas anyone? Or is this a known bug with tcp_wrappers/vsftpd? Of course tcp_wrappers is enabled in the vsftpd.conf file.
 
Old 12-31-2004, 06:40 PM   #2
ilaurie
LQ Newbie
 
Registered: Dec 2004
Location: Sydney, Australia
Distribution: RHEL, Fedora, Slackware, FreeBSD
Posts: 2

Original Poster
Rep: Reputation: 0
I've given up. There is some serious weirdness in tcp_wrappers support inside vsftpd that I don't understand.

I've disabled tcp_wrappers support, and I'm no longer running vsftpd in stand-alone mode, instead I'm running vsftpd UNDER xinetd and the above hosts.allow file syntax work great.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
vsftpd, web uploads, vsftpd virtual users, apache virtual hosts, home directories jerryasher Linux - Software 7 02-18-2007 06:29 AM
hosts file? milesstandish Red Hat 2 11-02-2004 10:57 PM
VSFTPD Debian VSFTPD "unrecognised variable in config file" DCT Linux - Software 0 05-29-2004 11:59 PM
does the /etc/hosts file work same as the M$ hosts file? Lleb_KCir Linux - Software 6 04-03-2004 04:33 PM
uploaded file on vsftpd has wrong file attributes rune.kg Linux - Newbie 2 03-06-2004 09:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration