LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-24-2007, 10:59 AM   #1
killahsmurf
Member
 
Registered: Mar 2005
Distribution: Slackware
Posts: 50

Rep: Reputation: 15
vsftpd from inetd correctly


ive been toying with the settings of vsftpd to get it to run when my machine boots up. standalone isnt a problem at all, it runs flawlessly from there. In the /etc/inetd.conf i put in the line
ftp stream tcp nowait root /usr/sbin/vsftpd vsftpd

(but was originally)

ftp stream tcp nowait root /usr/sbin/tcpd vsftpd

neither one of them seems to have any effect at all. ive looked at several different posts on various forums, and have thoroughly read through the vsftpdrocks.org tutorials. seems like whenever you get to running it from inetd is where it starts to get funny. ill provide my vsftp.conf file. let me know if something is wrong in there.

Quote:
listen=NO
max_clients=4
max_per_ip=1

# Access rights
anonymous_enable=NO
local_enable=YES
write_enable=YES
anon_upload_enable=NO
anon_mkdir_write_enable=NO
anon_other_write_enable=NO
pasv_enable=YES
pasv_address=x.x.x.x
listen_port=xxxx

# Security
anon_world_readable_only=YES
connect_from_port_20=NO
hide_ids=YES
pasv_min_port=xxxxx
pasv_max_port=xxxxx
pasv_promiscuous=YES
chroot_local_user=YES
cmds_allowed=PASV,GET,MGET,PUT,MPUT,CD,LS,QUIT,HELP,MKDIR,OPEN,PWD,SYST,TYPE,LIST,CWD,SIZE,STOR,RETR ,REST,MKD,CDUP,NOOP

# Features
ls_recurse_enable=NO
ascii_download_enable=NO
async_abor_enable=YES
dirmessage_enable=YES

#Logging
dual_log_enable=YES
xferlog_enable=YES
xferlog_file=/var/log/xferlog.log
log_ftp_protocol=YES
vsftpd_log_file=/var/log/vsftpd.log
syslog_enable=YES

# Performance
one_process_model=NO
idle_session_timeout=120
data_connection_timeout=300
accept_timeout=60
connect_timeout=60
anon_max_rate=50000
 
Old 07-24-2007, 07:07 PM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
have you restart your inetd service?

i'm able to make it work here both on standalone or inetd
 
Old 07-25-2007, 09:22 PM   #3
killahsmurf
Member
 
Registered: Mar 2005
Distribution: Slackware
Posts: 50

Original Poster
Rep: Reputation: 15
before i knew how to restart inetd, i was just rebooting my computer. and that basically does the same thing no? what did you put in your inetd file for running vsftpd, i honestly cant see where i went wrong. if it can run in standalone, what would make it stop from running from inetd??
 
Old 07-26-2007, 01:04 AM   #4
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
i just uncomment the rc.inetd file on this line
ftp stream tcp nowait root /usr/sbin/tcpd vsftpd
and it works
 
Old 07-26-2007, 04:29 PM   #5
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 231Reputation: 231Reputation: 231
How are you checking to see if it's running?

When running from inetd the port will be open but you won't see a ftpd process running until someone connects.

Test it with some of the following
Code:
netstat -lt |fgrep ftp
telnet localhost 21
(as root) fuser -v 21/tcp
Also keep in mind that /usr/sbin/tcpd is tcp-wrappers which means that /etc/hosts.{allow,deny} will come into play .
 
  


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 not starting correctly swatward Linux - Software 1 08-01-2005 09:08 PM
vsftpd inetd -> xinetd slackster Linux - Networking 2 06-26-2005 05:37 PM
Start vsftpd with inetd Thinkgeekness Linux - Software 25 07-02-2004 08:01 AM
VSftpd cant login when using inetd, but can when using listen=YES ToMMY2ooo Linux - Software 0 05-05-2004 06:53 AM
inetd doesnt start vsftpd suse rvn Linux - Newbie 11 10-15-2003 03:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:16 PM.

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