LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-24-2006, 04:16 AM   #1
winxandlinx
Member
 
Registered: May 2006
Posts: 141

Rep: Reputation: 15
Login Failed in Vsftp server


Hi Everyone ,

i am using redhat 9 , installed vsftp server

then, anonoymous =no

i am getting the login screen but i accnot able to login through

root and other username also ,anything has to be done apart from

that


here my vsftpd.conf file


Example config file /etc/vsftpd.conf

#
# Allow anonymous FTP?
anonymous_enable=NO
#
# 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

local_umask=022

#anon_upload_enable=YES
dirmessage_enable=YES
#
# Activate logging of uploads/downloads.
xferlog_enable=YES

connect_from_port_20=YES
# If you want, you can have your log file in standard ftpd xferlog format
xferlog_std_format=YES
You may fully customise the login banner string:
ftpd_banner=Welcome to blah FTP service.
pam_service_name=vsftpd
userlist_enable=YES

#enable for standalone mode
listen=YES
tcp_wrappers=YES

my vsftpd.user_list file

vsftpd userlist
# If userlist_deny=NO, only allow users in this file
# If userlist_deny=YES (default), never allow users in this file, and
# do not even prompt for a password.
# Note that the default vsftpd pam config also checks /etc/vsftpd.ftpusers
# for users that are denied.

bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody

my vsftpd.ftpusers

# Users that are not allowed to login via ftp
root
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody


Thanks & Regards
winxandlinx

Last edited by winxandlinx; 05-24-2006 at 04:20 AM.
 
Old 05-24-2006, 11:06 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
You've already answered your question yourself. Take a good, hard look at that vsftpd.ftpusers file.

I will also add that it is a bad security practice to allow local users to log on to vsftpd (since their credentials are sent across the wire in plain text). To try to log on as root to vsftpd is insane.
 
Old 05-25-2006, 12:18 AM   #3
winxandlinx
Member
 
Registered: May 2006
Posts: 141

Original Poster
Rep: Reputation: 15
yes thanks Actually i was really new to linux,

tell me how can i add only specified users to login

and that too as you told how can i add user apart from the local

users
 
Old 05-25-2006, 01:03 AM   #4
vimal
Red Hat India
 
Registered: Nov 2004
Location: Kerala/Pune,india
Distribution: RedHat, Fedora
Posts: 260

Rep: Reputation: 36
Hello winxandlinx,

According to the directive 'userlist_enable=YES' in your conf: file, any users in the file 'vsftpd.user_list' are allowed login. But the file 'vsftpd.ftpusers' denies any users that has been added to it. You can see that both files have the same entries and so they get blocked. 'vsftpd.user_list' is checked first and if the user name exists there, then 'vsftpd.ftpusers' is checked. If the name exist here, then its denied. So if you want to add a user to the FTP user list, you just add them to 'vsftpd.user_list', but don't add them to 'vsftpd.ftpusers'. Restart FTP and enjoy...


Thanks,,,
 
Old 05-25-2006, 03:53 AM   #5
winxandlinx
Member
 
Registered: May 2006
Posts: 141

Original Poster
Rep: Reputation: 15
Thanks vimal its very clear now
 
  


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
vsftp 550 failed to change directory? swatward Linux - Software 2 08-25-2010 07:10 PM
How to allow specific user to login Vsftp server winxandlinx Linux - Networking 4 05-24-2006 06:47 AM
Failed Error while restarting vsftp server winxandlinx Linux - Networking 2 05-16-2006 12:00 AM
login failed when try to connect to mail server sazaney Linux - Newbie 4 04-07-2005 09:29 PM
VSFTP on Gentoo - directory listing failed animehair Linux - Software 4 12-10-2004 10:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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