User Tools

Site Tools


vsftpd

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
vsftpd [2009/06/12 08:47]
k2patel
vsftpd [2020/08/10 02:35] (current)
Line 2: Line 2:
  
 Very secure, but hard to configure for virtual users and chroot.\\ Very secure, but hard to configure for virtual users and chroot.\\
-Here i have crack it down one day for my client.+Usually virtual user help in hosting environment.\\ 
 +But it is good to have diff. account on FTP for each person to specific location.\\ 
 + 
 +Use configuration below and use the commands specified to create new user / manage users. 
  
 <code bash | /​etc/​vsftpd/​vsftpd.conf>​ <code bash | /​etc/​vsftpd/​vsftpd.conf>​
Line 81: Line 85:
 </​code>​ </​code>​
  
-Additional Log options+Additional Log options, you would like to add to above config i have added
  
 <code bash> <code bash>
Line 92: Line 96:
   * create directory "/​etc/​vsftpd/​vsftpd_user_conf"​   * create directory "/​etc/​vsftpd/​vsftpd_user_conf"​
   * create file "/​etc/​vsftpd/​vsftpd_user_conf/​www" ​   * create file "/​etc/​vsftpd/​vsftpd_user_conf/​www" ​
 +
 +NOTE : now we are overriding all disabled options for each user. (if not you will be denied for anything LOL)
  
 <code bash | /​etc/​vsftpd/​vsftpd_user_conf/​www>​ <code bash | /​etc/​vsftpd/​vsftpd_user_conf/​www>​
Line 97: Line 103:
 dirlist_enable=YES dirlist_enable=YES
 download_enable=YES download_enable=YES
 +anon_upload_enable=YES
 +anon_other_write_enable=YES
 +anon_mkdir_write_enable=YES
 local_root=/​var/​www/​html local_root=/​var/​www/​html
 </​code>​ </​code>​
Line 129: Line 138:
 download_enable=YES download_enable=YES
 write_enable=YES write_enable=YES
 +anon_upload_enable=YES
 +anon_other_write_enable=YES
 +anon_mkdir_write_enable=YES
 </​code>​ </​code>​
 +
 +  * If you see permission 600 and you have issue with that permission and not able to chmod. try following additional lines.
 +
 +<code bash | /​etc/​vsftpd/​vsftpd_user_conf/​username2>​
 +chmod_enable=YES
 +virtual_use_local_privs=YES
 +</​code>​
 +
 +NOTE : any change to user setting does not require restart - but new ftp connection needed.
 +
 +Some use full link : \\
 +[[ http://​kbase.redhat.com/​faq/​docs/​DOC-6202 | user permission fix ]]
  
 DONE DONE
vsftpd.1244796453.txt.gz · Last modified: 2020/08/10 02:29 (external edit)