Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Possible Duplicate:
Why won't vsftpd let me log in with a virtual user account?

I'm trying to configure virtual FTP users along with real users on a server. I installed VSFTP and it works fine. I tried to follow this tutorial: http://howto.gumph.org/content/setup-virtual-users-and-directories-in-vsftpd/

However, when I try to login via FTP, the login fails. I solved the problem by creating a real user on the machine called "jjames", but I would like it to work without the real user.

My .htaccess file is in /etc/vsftpd/passwd, I tried creating it with and without the -m flag with the virtual user jjames.

This is my configuration information...

grep -vE "^#" /etc/vsftpd/*


This is my PAM file... (Note: I'm not sure if PAM is even working, I did "yum install pam")

session    optional     pam_keyinit.so    force revoke
auth       required     pam_listfile.so item=user sense=deny file=/etc/vsftpd/ftpusers onerr=succeed
auth       required     pam_shells.so
auth       include      system-auth
account    include      system-auth
session    include      system-auth
session    required     pam_loginuid.so

# Customized login using htpasswd file
auth    required pam_pwdfile.so pwdfile /etc/vsftpd/passwd
account required pam_permit.so
share|improve this question

marked as duplicate by nhinkle Mar 7 '12 at 23:27

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2 Answers 2

I think you can refer to the vsftpd example which is included in the package "vsftpd".

It would be located in the directory:

share|improve this answer

Use below to configure.


I have tried this on my setup & it is working as expected.

share|improve this answer
Welcome to Super User, and thanks for helping out by providing an answer! In the future, if you find two questions which are nearly identical, please flag them for moderator attention and mark them as a duplicate, instead of posting the same answer twice. This helps us to keep things in order and consolidate information. –  nhinkle Mar 7 '12 at 23:28
Thanks for the info. I am very new & was not aware of this, Will keep this in mind. –  atolani Mar 8 '12 at 22:49

Not the answer you're looking for? Browse other questions tagged or ask your own question.