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