Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 16th June 2006, 12:05 PM
rocknolds Offline
Registered User
 
Join Date: Jun 2006
Location: Cebu City Philippines
Age: 36
Posts: 35
cannot ftp to my FTP (vsftpd) server

QUESTIONS:
1. Why is it ftp from windows XP fails?
Window> ftp 157.184.66.159
> ftp: connect :Unknown error number

2. Why can it ftp from a terminal of the same box using anonymous and root is denied?
[Note: There is no other user but root in this box]

[root@enticer /]# ftp 157.184.66.159
Connected to 157.184.66.159.
220 Welcome to Rocknolds' FTP Server
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (157.184.66.159:root): root
530 Permission denied.
Login failed.
ftp> user
(username) anonymous
331 Please specify the password.
Password:
230 Login successful.
ftp> ls
227 Entering Passive Mode (157,184,66,159,219,196)
150 Here comes the directory listing.
drwxr-xr-x 2 0 0 4096 Feb 12 18:52 pub
226 Directory send OK.
ftp> pwd
257 "/"


=========== CONTENTS OF vsftpd.conf ==============
# Example config file /etc/vsftpd/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=YES
#
# Uncomment this to allow local users to log in.
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 shown
# 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=YES
#ascii_download_enable=YES
#
# You may fully customise the login banner string:
ftpd_banner=Welcome to Rocknolds' 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 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

pam_service_name=vsftpd
userlist_enable=YES
#enable for standalone mode
listen=YES
tcp_wrappers=YES
Reply With Quote
  #2  
Old 16th June 2006, 12:58 PM
jhetrick62 Offline
Registered User
 
Join Date: Feb 2005
Location: Buffalo, Ny
Posts: 875
I don't believe that you can ftp with a root setting in vsftpd.

Jeff
__________________
Registered Linux User #411071

If at first you don't suceed, read the man page again!
Reply With Quote
  #3  
Old 16th June 2006, 01:03 PM
niravmodiya Offline
Registered User
 
Join Date: Jun 2006
Posts: 28
hi..for first question you should have to check the connection between server and client..as far as configuration file is concern you should have to enable following option.

chown_uploads = YES (uncomment this option)

for enabling root user you should do following changes in two file..
there are two file in vsftpd.ftpusers and vsftpd.user_list..
This two files are situated in /etc directory..

open vsftpd.ftpusers by # vi /etc/vsftpd.ftpusers ..
and comment out root line..

#root (comment this line)
bin
daemon
adm
...
...

same way open vsftpd_user_file..
and comment root line...like

#root
bin
daemon
adm
...
....

the users which are listed in this file are by default denied to use ftp service..
and as far as security concern it is preferred that you should not enable this root user for accessing ftp ..

hope this will be useful to u..
with regards
Nirav
Reply With Quote
  #4  
Old 16th June 2006, 01:04 PM
niravmodiya Offline
Registered User
 
Join Date: Jun 2006
Posts: 28
sorry second file is /etc/vsftpd.user_list..
Reply With Quote
  #5  
Old 16th June 2006, 01:26 PM
rocknolds Offline
Registered User
 
Join Date: Jun 2006
Location: Cebu City Philippines
Age: 36
Posts: 35
thanks a lot.

root works with that two mentioned files. but with you advise, i prefer to let the root remain to be denied.

i still have problem though.. ftp from my windows workstation cannot still ftp and will have the same response as posted above. i can PING the FC5 (where ftp server resides) from my windows XP host.
Reply With Quote
  #6  
Old 16th June 2006, 01:28 PM
rocknolds Offline
Registered User
 
Join Date: Jun 2006
Location: Cebu City Philippines
Age: 36
Posts: 35
# 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=rocknolds
#
Reply With Quote
  #7  
Old 16th June 2006, 01:37 PM
niravmodiya Offline
Registered User
 
Join Date: Jun 2006
Posts: 28
by which user u are trying to login in the ftp server?
is it rocknolds?

Nirav
Reply With Quote
  #8  
Old 16th June 2006, 01:44 PM
rocknolds Offline
Registered User
 
Join Date: Jun 2006
Location: Cebu City Philippines
Age: 36
Posts: 35
dont even have the chance to enter that rocknolds username... got this reply from windows cmd prompt

Window> ftp 157.184.66.159
> ftp: connect :Unknown error number

but PINGing from windows box to this FC5 server is just fine...

FTP from the same FC5 box (i just open a virtual terminal from the KDE) and it is working just fine also...
Reply With Quote
  #9  
Old 16th June 2006, 01:47 PM
rocknolds Offline
Registered User
 
Join Date: Jun 2006
Location: Cebu City Philippines
Age: 36
Posts: 35
can you provide me the CLI command so that i will know if the ff are running

1. FTP server and FTP client
2. SSH server and SSH client
3. DHCP server DHCP client

ps -aux just flood all the running programs and just couldn't see the desired daemon.

thanks a lot for your patience
Reply With Quote
  #10  
Old 16th June 2006, 01:51 PM
niravmodiya Offline
Registered User
 
Join Date: Jun 2006
Posts: 28
do one thing disable anonymous access by commented out following 3 options

anonymous_enable=YES (comment this option)
anon_upload_enable=YES (comment this option)
anon_mkdir_write_enable=YES (comment this option)

and first make a bakup copy of vsftpd.conf file then do the changes

dont forget to restart the vsftpd server
then try..

let me know what u get..
Nirav
Reply With Quote
  #11  
Old 16th June 2006, 02:05 PM
rocknolds Offline
Registered User
 
Join Date: Jun 2006
Location: Cebu City Philippines
Age: 36
Posts: 35
ftp from windows has the same error

ftp from the same fc5 box this time has error. below is what happens... (i have to recall the backup conf)

[root@enticer /]# ftp 157.184.66.159
Connected to 157.184.66.159.
500 OOPS: cannot locate user entry:ftpsecure
ftp>
Reply With Quote
  #12  
Old 16th June 2006, 02:12 PM
cdlaforc Offline
Registered User
 
Join Date: Jun 2005
Location: Wisconsin
Age: 33
Posts: 241
You either need to comment out this line in you vsftp.conf file:
# 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

or setup that user.
__________________
Thanks,

Chris.
Reply With Quote
  #13  
Old 16th June 2006, 02:21 PM
niravmodiya Offline
Registered User
 
Join Date: Jun 2006
Posts: 28
yes i think cdlaforc is right..it may work fine after comment that option..

Nirav
Reply With Quote
  #14  
Old 17th June 2006, 08:29 PM
rocknolds Offline
Registered User
 
Join Date: Jun 2006
Location: Cebu City Philippines
Age: 36
Posts: 35
iLL try this guys.. thanks.

feedback later...
Reply With Quote
Reply

Tags
ftp, server, vsftpd

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ftp server vsftpd ... landolini Using Fedora 0 9th June 2008 01:56 PM
vsftpd ftp server trinimoses Using Fedora 0 11th July 2005 04:34 PM
vsftpd server on FC2 Nunners Servers & Networking 4 5th June 2004 08:07 AM


Current GMT-time: 15:40 (Tuesday, 21-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat