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'm trying to set up vsftpd so only system accounts can login (no anonymous logins). Right now it's running, and it will ask for a password, but no matter what user I try to login as it will say the password is wrong, even if it's a fresh account that I just made the password for. Any idea what's going on here?
The only items I changed from the default vsftpd.conf are:
anonymous_enable=NO
local_enable=YES
write_enable=YES
I thought that's all I had to do, but it's rejecting valid passwords still.
Assuming I get this running, does anyone know how hard it is to link up vsftpd to a mysql database for the login process? I'd also like to link in pop3 accounts to mysql (I can't seem to login to pop3 either), but I'll save that question for another post once I get this one working.
Never really used this program, but I think the cause of your problem is the lack of PAM support on your system...
you may wish to try adding the following line to your config file:
check_shell=NO
As for your second question, I don't think it would be possible without actually changing the code for the program. It looks for local system users. If you are allowing ftp access say to members of a web page, you may wish to create a group for vsftusers (albeit highly restrictive access) and add some sort of adduser script to your web page using perl.
vsftpd tries to link with PAM. (Run "ldd vsftpd" and look for libpam to
find out whether this has happened or not). If vsftpd links with PAM, then you will need to have a PAM file installed for the vsftpd service. There is a sample one for RedHat systems included in the "RedHat" directory - put it under /etc/pam.d
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.