Pureftpd issue set password and pure-pw script

Source: Internet
Author: User

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:

 
 
  1. pure-pw useradd john -d /tmp/john -u ftpuser -m < ~/tmp/passfile  

In the file ~ /Tmp/passfile contains something similar to the following:

 
 
  1. john's password  
  2.  
  3. 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:

 
 
  1. (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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.