LinuxQuestions.org
Help answer threads with 0 replies.
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 03-08-2008, 01:43 PM   #1
200mg
Member
 
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.

Code:
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
anomie
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
200mg
Member
 
Registered: Jul 2006
Posts: 88

Original Poster
Rep: Reputation: 15
results

Code:
 netstat -ltn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 0.0.0.0:139             0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:445             0.0.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
200mg
Member
 
Registered: Jul 2006
Posts: 88

Original Poster
Rep: Reputation: 15
CONF FILE


listen=YES
#listen_ipv6=YES
anonymous_enable=NO


local_enable=YES

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

# 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)
#local_umask=022
#
# 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.
#anon_upload_enable=YES
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
#anon_mkdir_write_enable=YES
#
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
#
# Activate logging of uploads/downloads.
xferlog_enable=YES
#
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES
#
# 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!
#chown_uploads=YES
#chown_username=whoever
#
# You may override where the log file goes if you like. The default is shownpasv_max_port to 61000
# below.
#xferlog_file=/var/log/vsftpd.log
#
# If you want, you can have your log file in standard ftpd xferlog format
#xferlog_std_format=YES
#
# You may change the default value for timing out an idle session.
#idle_session_timeout=600
#
# You may change the default value for timing out a data connection.
#data_connection_timeout=120
#
# 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.
#nopriv_user=ftpsecure
#
# 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.
#async_abor_enable=YES
#
# 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
#ascii_download_enable=YES
#
# 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.
#deny_email_enable=YES
# (default follows)
#banned_email_file=/etc/vsftpd.banned_emails
#
# 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.
#chroot_local_user=YES
#
# 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().
#chroot_list_enable=YES
# (default follows)
#chroot_list_file=/etc/vsftpd.chroot_list
#
# 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.
#ls_recurse_enable=YES
#
#
# 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.
secure_chroot_dir=/var/run/vsftpd
#
# This string is the name of the PAM service vsftpd will use.
pam_service_name=vsftpd
#
# This option specifies the location of the RSA certificate to use for SSL
# encrypted connections.
rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
# This option specifies the location of the RSA key to use for SSL
# encrypted connections.
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key

max_clients 3
#listen_port 333
#max_per_ip
#anon_max_rate
#local_max_rate
pasv_enable=YES
#pasv_min_port=11000
#pasv_max_port=11010
 
Old 03-08-2008, 03:48 PM   #5
200mg
Member
 
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
 
  


Reply


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

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

All times are GMT -5. The time now is 07:53 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