LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 02-12-2006, 08:26 PM   #1
vsftpd_virtual_conf
LQ Newbie
 
Registered: Feb 2006
Posts: 1

Rep: Reputation: 0
Cool VSFTP Virtual User Configuration


I have seen many posts regarding per user configuration for virtual users. One of the most important fact regarding this is the file ownership. Per user configuration files are only read if the files are owned by root. I was not able to find this documented anywhere however while reading through code, it is clear that per user settings are ignored unless per user configuration files are owned by root.

In order for virtual user configuration of vsftpd to take effect, here is what you need:

* user_config_dir=/etc/vsftpd/users

* one file per user with filename identical to the username, so for example, if you want a user janedoe to login and have personalized settings for her, create file /etc/vsftpd/users/janedoe

* do chown root.root /etc/vsftpd/ -R

* /etc/vsftpd/users/janedoe, you can do stuff like:
anon_mkdir_write_enable=NO
anon_other_write_enable=NO
anon_upload_enable=NO
dirlist_enable=YES
download_enable=YES
local_root=/www/janedoe
write_enable=YES


For simplicity sake, I am posting a complete working configuration:

anonymous_enable=NO
local_enable=YES
write_enable=YES
anon_upload_enable=NO
anon_mkdir_write_enable=NO
anon_other_write_enable=NO
chroot_local_user=YES
guest_enable=YES
guest_username=ftp
listen=YES
background=NO
listen_port=21
pasv_min_port=30000
pasv_max_port=44444

### Custom Configuration ###
user_config_dir=/etc/vsftpd/users
dirlist_enable=YES
download_enable=YES
connect_from_port_20=YES
hide_ids=NO
use_localtime=YES
virtual_use_local_privs=YES
xferlog_enable=YES
async_abor_enable=YES
local_umask=022
port_enable=YES
port_promiscuous=NO
setproctitle_enable=YES
anon_max_rate=1
max_per_ip=6
max_clients=6

Last edited by vsftpd_virtual_conf; 02-12-2006 at 08:27 PM.
 
Old 05-21-2006, 09:53 AM   #2
Rindert
LQ Newbie
 
Registered: Jun 2005
Location: Roosendaal
Distribution: Kubuntu 6.10, amd64
Posts: 13

Rep: Reputation: 0
How to configure a users password?

The info above is based on the example 2 on the official vsfpd site. But that assumes you already have setup virtual users using pam-authentication.

But i don;t have db3 as the progam wants....
 
  


Reply


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
VSFTP Virtual Users chrooted to NTFS Help please murdocthecrackmongre Linux - Software 2 07-05-2005 07:43 PM
VSFTP Virtual users Rage79 Linux - Security 7 01-10-2005 07:57 AM
vsftp & virtual users dominant Linux - Software 0 11-24-2004 04:10 AM
vsftp configuration..HELP!!! steve7575 Linux - Software 0 08-02-2004 04:11 PM
vsFTP configuration Skute Linux - Networking 22 04-05-2004 10:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:41 PM.

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