creating Virtual users on linux server using Proftpd
##################################################################
proftpd FTP server user account creation using commands ##################################################################
note:- If you have already configured proftpd server and just want to add new user , skip to step 3 direct
////////////////
// step 1.
////////////////
install proftpd on system if it is not installed using apt
command is
apt-get install proftpd-basic
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPb0YBSmTJ__BpKDd3QX9PuhdLPt_EJpATp4KLQ4G6S7pihwvqegZEXiJua-MTpngyFU87-LwsVarpEf5k1h012srm1emkgIymarih92OiotK97lFlbrbpiPFAMLhOQn0ZL0vdow-ahyphenhyphen0/s1600/proftpd1.png)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPb0YBSmTJ__BpKDd3QX9PuhdLPt_EJpATp4KLQ4G6S7pihwvqegZEXiJua-MTpngyFU87-LwsVarpEf5k1h012srm1emkgIymarih92OiotK97lFlbrbpiPFAMLhOQn0ZL0vdow-ahyphenhyphen0/s1600/proftpd1.png)
/////////////////
// Step 2
/////////////////
enter into directory /etc/proftpd
open file proftpd.conf
uncoment line number 34 (containg text DefaultRoot ~ )
and add this line just below it
AuthUserFile /etc/proftpd/ftpd.passwd
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_v3JI_O7gwQhLCZOr54Z1gj41xWBodQ88DkxxSvzsGui6jQsGuPFhDW4rRt0fixku6MqoBThHL5Bixsi2-8iKNDNOTV-WJnr1z2qYt5ZpWs1iCGf4H0YCZSvah5XBMbD2ktVJt7qWZMg/s1600/proftpd2.png)
//////////////
// Step 3
// Step 3
//////////////
now add virtual user to ftp server using command
ftpasswd --uid <uid> --gid <gid> --name <username> --shell /bin/false --home <path> --passwd
here
uid is the user id (assign 33 and user will behave like www-data user)
gid is group id (assign 33 to work as www-data)
name is the username which you want to add to ftp server
shell is the name of shell terminal have it /bin/false
home is the directory where user will be directed after successful login
passwd is for password and need not to supply password with command
for example i want to create a user having name indishell and want to assign /ftp directory to him if user autheticate successfully
uid and gid is 33
command will be
ftpasswd --uid 33 --gid 33 --name indishell --shell /bin/false --home /ftp --passwd
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQLidceaa6C-ThmYDdH2ylMDAGrc2SbivJkuvAFgMaCw0mKIYrCjITVLEPZJim7aeZMxX1ku-jP2Qa2lAuz3g-ziOSmh9iuM1gLT1u-gSjU_K5YtkXZrXVU0dmES5Ffa51ovmYe7aRDZM/s1600/proftpd3.png)
press enter and supply new password for the user account
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgSvu1_bgBu6vNDSj9aYmNxIO6-6qGTogxIcbynaRIK99PSKLjtsxXdqm0gHjrjDjtdOmIXpgERTlh-ieXHpyTcIrx_to7X_GvT1cD9I2a2GR8anZaRFofYjwgI4gfdfeLFeTzEnW95Zw/s1600/proftpd4.png)
//////////////
// Step 4
//////////////
now need to chmod and chown the /etc/proftpd/ftpd.passwd and /etc/proftpd/ftpd.group
these files contains FTP server usernames/groups and its password
chmod 400 /etc/proftpd/ftpd.passwd /etc/proftpd/ftpd.group
chown proftpd.nogroup /etc/proftpd/ftpd.passwd /etc/proftpd/ftpd.group
and now are done :)
you can login to your ftp account using command
ftp server_IP
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTELBhlU9K_O8MDXgTcmIWNjzc2KIJDpk8vEnODRvg5-bGKB5teEiTR-hLBgw6TMaFwPS0QY0Ugh8oQPgE88KOaJdoqWmYWIgPXJl68U6HRl8WWdfX8GUgISFHpiKqaMBmYn552Wbmx0Y/s1600/proftpd6.png)
Note:- if you are on ubuntu server, then value of uid and gid should be 33(web server id) else you may face issue in writing files ;)
you can login to your ftp account using command
ftp server_IP
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTELBhlU9K_O8MDXgTcmIWNjzc2KIJDpk8vEnODRvg5-bGKB5teEiTR-hLBgw6TMaFwPS0QY0Ugh8oQPgE88KOaJdoqWmYWIgPXJl68U6HRl8WWdfX8GUgISFHpiKqaMBmYn552Wbmx0Y/s1600/proftpd6.png)
Note:- if you are on ubuntu server, then value of uid and gid should be 33(web server id) else you may face issue in writing files ;)
enjoy >:D<
Thank you
Thank you
-==[[Love to]]==--
zero Cool ,code breaker ica, root_devil, google_warrior,INX_r0ot,Darkwolf indishell,Baba ,Silent poison India,Magnum sniper,Atul Dwivedi,ethicalnoob Indishell,Local root indishell,Irfninja indishell,Reborn India,L0rd Crus4d3r,AR AR,Mannu, ViKi, Hardeep singh Bhuppi,Mohit, Ffe, Anju, RR Mam, Acchi bacchi(Jagriti) and DON
alternative link download