Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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:

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    force revoke
auth       required item=user sense=deny file=/etc/vsftpd/ftpusers onerr=succeed
auth       required
auth       include      system-auth
account    include      system-auth
session    include      system-auth
session    required

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

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

This question was marked as an exact duplicate of an existing question.

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 .