Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 03-08-2008, 01:43 PM   #1
Registered: Jul 2006
Posts: 88

Rep: Reputation: 15
vsftpd question

Hello, I am using Ubuntu Gutsy and I installed vsftpd using apt-get. I have configured the /etc/vsftpd.conf file. I left the "listen_port" option alone so it should be default 21. I don't think vsftpd is running though, I start, stop, restart using /etc/init.d/vsftpd start/stop/etc...however after i start it it's not opening port 21 to accept connections. I was wondering if the "No /usr/sbin/vsftpd found running; none killed." is part of the problem, after a restart it says "ok" like it should be running.

sudo /etc/init.d/vsftpd restart
 * Stopping FTP server: vsftpd  No /usr/sbin/vsftpd found running; none killed.
                                                                         [ OK ]
 * Starting FTP server: vsftpd
So to me the above looks like it should be running, however when i do an nmap to local it doesn't show 21 as being open. Any ideas? TIA

Last edited by 200mg; 03-08-2008 at 01:48 PM.
Old 03-08-2008, 01:58 PM   #2
Senior Member
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
To tell if vsftpd is running use:

# netstat -ltn

Look for a daemon listening on tcp port 21.

Also use:

# pgrep vsftpd

If you see a PID, it's running.

There are lots of ways to determine whether your daemon is running; nmap against localhost is not a particularly useful one. If you check and determine that vsftpd is not running, carefully review your vsftpd.conf for syntactical errors.

Last edited by anomie; 03-08-2008 at 01:59 PM.
Old 03-08-2008, 03:07 PM   #3
Registered: Jul 2006
Posts: 88

Original Poster
Rep: Reputation: 15

 netstat -ltn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0   *               LISTEN     
tcp        0      0 *               LISTEN     
tcp        0      0   *               LISTEN
pgrep found nothing for vsftpd. So in this case this line when restarting vsftpd is normal

"No /usr/sbin/vsftpd found running; none killed."

I'm sure the conf is right, I have tried with the default conf as well, that should at least open port 21 right?
Old 03-08-2008, 03:20 PM   #4
Registered: Jul 2006
Posts: 88

Original Poster
Rep: Reputation: 15



# Uncomment this to enable any form of FTP write command.

# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
# Activate logging of uploads/downloads.
# Make sure PORT transfer connections originate from port 20 (ftp-data).
# If you want, you can arrange for uploaded anonymous files to be owned by
# a different user. Note! Using "root" for uploaded files is not
# recommended!
# You may override where the log file goes if you like. The default is shownpasv_max_port to 61000
# below.
# If you want, you can have your log file in standard ftpd xferlog format
# You may change the default value for timing out an idle session.
# You may change the default value for timing out a data connection.
# It is recommended that you define on your system a unique user which the
# ftp server can use as a totally isolated and unprivileged user.
# Enable this and the server will recognise asynchronous ABOR requests. Not
# recommended for security (the code is non-trivial). Not enabling it,
# however, may confuse older FTP clients.
# By default the server will pretend to allow ASCII mode but in fact ignore
# the request. Turn on the below options to have the server actually do ASCII
# mangling on files when in ASCII mode.
# Beware that on some FTP servers, ASCII support allows a denial of service
# attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd
# predicted this attack and has always been safe, reporting the size of the
# raw file.
# ASCII mangling is a horrible feature of the protocol.
#ascii_upload_enable=YESpasv_max_port to 61000
# You may fully customise the login banner stringasv_max_port to 61000
ftpd_banner=FTP Server
# You may specify a file of disallowed anonymous e-mail addresses. Apparently
# useful for combatting certain DoS attacks.
# (default follows)
# You may restrict local users to their home directories. See the FAQ for
# the possible risks in this before using chroot_local_user or
# chroot_list_enable below.
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
# (default follows)
# You may activate the "-R" option to the builtin ls. This is disabled by
# default to avoid remote users being able to cause excessive I/O on large
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
# the presence of the "-R" option, so there is a strong case for enabling it.
# Debian customization
# Some of vsftpd's settings don't fit the Debian filesystem layout by
# default. These settings are more Debian-friendly.
# This option should be the name of a directory which is empty. Also, the
# directory should not be writable by the ftp user. This directory is used
# as a secure chroot() jail at times vsftpd does not require filesystem
# access.
# This string is the name of the PAM service vsftpd will use.
# This option specifies the location of the RSA certificate to use for SSL
# encrypted connections.
# This option specifies the location of the RSA key to use for SSL
# encrypted connections.

max_clients 3
#listen_port 333
Old 03-08-2008, 03:48 PM   #5
Registered: Jul 2006
Posts: 88

Original Poster
Rep: Reputation: 15
I figured this out, I was running standalone, not inet..thanks fore the reply's


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
question on vsftpd nevxille Linux - Newbie 2 11-04-2006 01:38 PM
vsFTPd question marghorp Linux - Software 5 10-21-2004 12:40 PM
Question vsFTPD tommytomato Linux - General 1 09-13-2004 01:39 AM
VSFTPD Question TheRealDeal Linux - General 4 12-02-2003 03:41 PM
vsftpd question Drogo Linux - Software 6 01-29-2003 05:45 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:53 AM.

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