Server Fault is a question and answer site for system and network administrators. 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

I have set up an FTP account on a linux machine with vsftpd for a single user.

Now, how would I add a new user with parameters:

  • base_folder
  • username
  • password
share|improve this question

closed as not a real question by mdpc, Ward, Stefan Lasiewski, Khaled, MadHatter Feb 18 '13 at 14:58

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

The "right" way is to use PAM to create virtual users just for vsftpd. This site has a basic description using a separate passwd file for vsftpd, but with enough work you can make PAM use a database as well. Since the accounts in a separate passwd file, they can't log in to the computer. Since it uses a completely separate passwd file, your existing user will have to be copied into that file in order to be able to use FTP

PAM can also allow both the virtual users and the real users to log in to vsftp. Then you won't have to copy your real users into the vsftp virtual user passwd file.

share|improve this answer

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