Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

add comment

1 Answer

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
add comment

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