Batch create many FTP users in LINUX

Source: Internet
Author: User
Article Title: Batch create many FTP users in LINUX. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

How can I write a script to create many FTP users in batches in LINUX?

Ftp user? What Ftp Server are you using?

Many Ftp servers use system users.

Post:

How to create a large number of users at a time

Use the built-in tools newusers and chpasswd.

?? Edit the account file first. Each column must be written in the password file format. (Make good use of the copy and copy functions of the document editing program to generate a large number of copies)

?? For example, an account named new_alist

?? Stu001: 600: 600: stu:/home/stu001:/bin/bash

?? Stu002: 601: 601: stu:/home/stu002:/bin/bash

?? Stu003: 602: 602: stu:/home/stu003:/bin/bash

?? Stu004: 603: 603: stu:/home/stu004:/bin/bash

?? Stu005: 604: 604: stu:/home/stu005:/bin/bash

?? Stu006: 605: 605: stu:/home/stu006:/bin/bash

?? Create an account:

?? Newusers <new_alist

?? Run pwunconv

?? Edit the password control file:

?? For example, create a password control file named new_plist.

?? Stu001: Password

?? Stu002: Password

?? Stu003: Password

?? Stu004: Password

?? Stu005: Password

?? Stu006: Password

?? Password creation:

?? Chpasswd <new_plist

?? Run pwconv

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.