vsftpd: Local And Virtual Users With Bash Scripts For User Maintainance (CentOS 6.0) - Page 3
Bash ScriptsThe Bash scripts presented here are for the vsftpd server that has been set up using the instructions in the previous pages. Do these changes before using the scripts assuming that you have root access. Create the following vuser subfolder in /etc/vsftpd/ if not done already: # cd /etc/vsftpd Download the scripts bundle and untar it in the /etc/vsftpd/vuser folder. This is at version v0.1 and is being developed so you can check back for more versions and funcationality at http://vsftpd-virtualuser-bash-scripts.blogspot.com/.
Click here to download http://www.mediafire.com/?j9anm89c8v6pt84
The scripts vuserchk - checks the necessary files and folders necessary for these scripts The scripts are very verbose and will display messages and errors which are self explanatory.
What the scripts do not doDeleting a user will remove the user from the active list and the ftp home folder is renamed to $USER-deleted and the deleted user details are copied to a user deleted list. A script to archive and move the tarball to an archive folder is on the back burner.
Panic not, be cautiousUse the scripts wisely and carefully. Please backup before any use at production servers. The scripts have been tested and used without any errors or problems.
Six are the scriptsThese scripts are very non intrusive and have a simple logic flow. Prerequisites are BASH, GAWK, SED for the scripts to work. I am hoping to introduce more functionality into the scripts and add a local user ftp home sync'er and a deleted folder archiver, once finished will add them here. Test them, deploy for ease of mind, let the scripts do the work and relax :).
|



Recent comments
16 hours 52 min ago
21 hours 51 min ago
23 hours 17 min ago
1 day 10 min ago
1 day 1 hour ago
1 day 6 hours ago
1 day 7 hours ago
1 day 9 hours ago
1 day 22 hours ago
2 days 6 min ago