VSFTPD Virtual User Bash Scripts
Posted 01-04-2012 at 12:33 AM by sudhagud
These BASH script set have been written with the purpose of making the administration of VSFTPD virtual users easy, like creation, deletion, update. The scripts assume that pam_userdb is being used for Authentication along with local shell users.
The Scripts are very customizable with a single .conf file and can be used in internal VLAN office scenarios and in small to medium Production servers which face the internet.
The scripts:
vuserchk - checks the necessary files and folders necessary for these scripts
vuser.conf - the file containing configuration parameters for these scripts
vuseradd - adds a virtual user
vuserdel - delets a virtual user
vuserres - restores a deleted user
vuserpas - changes a virtual user password
vusersho - displays the user password
lusersnc - new script to sync the local user folders with the ftp folders with a symlink in the shell home folder
The scripts are very verbose and will display messages and errors which are self explanatory.
These scripts are very non intrusive and have a simple logic flow. Prerequisites are BASH, GAWK, SED for the scripts to work.
A step by step how-to can be found at http://www.howtoforge.com/vsftpd-loc...nce-centos-6.0 or at http://sudhakarbellamkonda.blogspot....tion-bash.html
Website at http://vsftpd-virtualuser-bash-scripts.blogspot.com/
The Scripts are very customizable with a single .conf file and can be used in internal VLAN office scenarios and in small to medium Production servers which face the internet.
The scripts:
vuserchk - checks the necessary files and folders necessary for these scripts
vuser.conf - the file containing configuration parameters for these scripts
vuseradd - adds a virtual user
vuserdel - delets a virtual user
vuserres - restores a deleted user
vuserpas - changes a virtual user password
vusersho - displays the user password
lusersnc - new script to sync the local user folders with the ftp folders with a symlink in the shell home folder
The scripts are very verbose and will display messages and errors which are self explanatory.
These scripts are very non intrusive and have a simple logic flow. Prerequisites are BASH, GAWK, SED for the scripts to work.
A step by step how-to can be found at http://www.howtoforge.com/vsftpd-loc...nce-centos-6.0 or at http://sudhakarbellamkonda.blogspot....tion-bash.html
Website at http://vsftpd-virtualuser-bash-scripts.blogspot.com/
Total Comments 0