Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-02-2017, 12:54 AM   #1
LQ Newbie
Registered: Feb 2017
Posts: 1

Rep: Reputation: Disabled
Question regarding VSFTPD & Virtual Users

Hello everyone!

I joined this community to ask this particular question. I've found answers for quite a few questions I've had here and figured it would be the best place to start.

So essentially what I have set up is VSFTPD with virtual users and everything there is set up properly and have tested signing in with a virtual user and it does exactly what I wanted it to do at the start. Now, what I'm looking to do is something I'm not sure is possible with VSFTPD or if it's one of it's limitations.

What I would like, is to be able to have multiple users with varying levels of folder access, some with the same directory as their root, others as a different directory.

To give an example, we have User1. User1 I would like to have /home/mcma/MCMA as their root directory. Then we have User 2. I would like his root directory to be /home/mcma/MCMA/PO2. User3 would have the same directory as User1 and User4 would have /home/mcma/MCMA/Infinity/config.

Is this something that's configurable in some way, or is that a limitation of the program? Most of the tutorials/threads I have read either here, or on other sites, only give examples on how to configure each user with their own directory, or 1 common directory shared between all users. I have yet to be able to find something in regards to multiple different directories for multiple users, some sharing the same directory and some with different directories.

Any help or suggestions to point me in the right direction would be greatly appreciated!

Old 02-17-2017, 08:28 AM   #2
Registered: Dec 2007
Distribution: Fedora Slackware CentOS slax RHEL
Posts: 117

Rep: Reputation: 23
I believe you need to set the user config directory

you can try in your vsftpd.conf file adding this line and creating the directory if it doesn't exist

then use vi or something similar to create the virtual user file vsftpd_user in your config directory and add your users to the file and save it

then in the same directory create another file with each name in your user config file and specify your options like home directory or commands allowed and appropriate masks and if you want readonly set write_enable to no and save each file and you're done


also make sure this line is NOT in your vsftpd.conf file local_root=/your/dir/path otherwise the above wont work


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
vsftpd & virtual users - 530 Login incorrect mjtice Linux - Software 3 12-08-2008 03:15 PM
Allow System Users and Virtual Users in VSFTPd Nickbrandson Linux - Software 0 01-24-2008 08:06 AM
vsftpd, web uploads, vsftpd virtual users, apache virtual hosts, home directories jerryasher Linux - Software 7 02-18-2007 06:29 AM
vsftpd and virtual users chrull Linux - Software 0 05-14-2004 05:09 PM
vsftpd and virtual users poweroff Linux - General 0 02-26-2004 07:04 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:34 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration