Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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

Currently I have a Running vsftpd server in a Cent OS Machine with virtual users.

Users are authenticated using MySQL.

The users has all the permissions in their home directory and they are jailed into their home directories. The current home directory is /home/vsftpd/username where username is the unique username for each user. It is working file.

Now I want to create some new virtual or real users which will have another kind of home directories i.e. /var/www/html/username.

I want to keep both types of users in the same server. I mean I need both the old users with the old home directories and new ones with the different home directories in the same vsftpd server.

I have gone through many tutorial but found nothing.

So please let me know if is it possible,if yes how?

share|improve this question

You can do this and control by user's permission. try to explore the following commands

  1. vim /etc/passwd ==> user's home directory and executable shell etc...
  2. vim /etc/groups or group ==> user's group information and modify your convenient
  3. chmod & chown commands will let you access directories

Thanks, Ela

share|improve this answer
VSFTPD has it's own passwd file, is it possible to edit these settings in /etc/passwd file??!! – Hojat Taheri Apr 4 '13 at 6:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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