Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.