PureftpdIt is an open source code software that is used on multiple types of Unix and complies with the GPL protocol. As the name suggests, it is a pure Ftp program. This document teaches you the Pureftpd password and pure-pw.Script.
Q: I want to use shell scripts to create virtual users. if you use pure-pw useradd ..... it always requires a new password. Is there any command line option to tell the pur-pw password (similar to useradd ftp-user ftp-password-m )? (Atlce)
A: It is not A good idea to use the command line option to give clear text (or poor one-way encryption) passwords, because you can use simple "ps" commands to find these passwords.
One way to enter a password (not through the keyboard) is to enter the password twice in a temporary file, and then redirect the file to the standard output. For example:
- pure-pw useradd john -d /tmp/john -u ftpuser -m < ~/tmp/passfile
In the file ~ /Tmp/passfile contains something similar to the following:
- john's password
-
- john's password
If you really want to avoid using temporary files, and no one except you can log on to your computer, you can also do this:
- (echo blahblah; echo blahblah) | pure-pw useradd john -d /tmp/john -u ftpuser
Through the introduction and analysis in this article, we have learned how to modify and operate the pure-pw password and pure-pw script! I hope this article will help you!
- PureFTPd problem summary
- Pureftpd problem set through SSH for FTP
- PureFTPd Q & A collection
- Pureftpd Problem Set firewall
- Chinese version of PureFTPd Q & A set
- Use a shell user or virtual user to log on to pureftpd
- Pureftpd
- How to integrate ClamAV in PureFTPd