Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ To batch create users under Linux     - Linux Beginner Guide: Installing packages on Ubuntu and Fedora (Linux)

- Without Visual Studio .NET Windows application development (Programming)

- Python basis: os module on the file / directory using methods commonly used functions (Programming)

- To install the mail client terminal Evolution 3.13.2 under Ubuntu 14.04 (Linux)

- JSON Introduction and Usage Summary (Programming)

- Use PuTTY key authentication mechanism for remote login Linux (Linux)

- Three details reflect the Unix system security (Linux)

- To install Gitolite in Ubuntu / Fedora / CentOS (Linux)

- Calling Qt libraries to implement functional processes of some summary (Programming)

- Linux terminal interface font color settings (Linux)

- Enterprise Hadoop cluster architecture - NFS installation (Server)

- Ubuntu prompt / lack of boot space solutions (Linux)

- CentOS7 installed VMware 10 (Linux)

- Linux script to copy the folder to all folders with the same name (Linux)

- Keepalived + HAProxy high availability load balancing (Server)

- To setup Cocos2dx project under Ubuntu (Linux)

- RHEL7 system making use of OpenStack mirror (Linux)

- How to make GRub instead of the default Ubuntu software center (Linux)

- Node.js development environment deployment (Server)

- Linux ldconfig command (Linux)

 
         
  To batch create users under Linux
     
  Add Date : 2018-11-21      
         
         
         
  If you want to create multiple users under Linux and do not want to manually set up one by one, you can use the following script to build!
#! / Bin / bash
#
for NUM in {1..9}; do
user = user $ NUM
useradd $ user
#userdel $ user echo RedHat | passwd --stdin $ user
done
Explanation:
for NUM in {1..9}; do sentence means from between 1-9 to select a number, because this script is used to establish a continuous user, user1, user2 .... user9.
useradd $ user phrase is a continuous increase in users
echo redhat | passwd --stdin $ user to add the phrase means the same for this continuous user password is redhat
If you want to delete a user can use the userdel command!
     
         
         
         
  More:      
 
- How to configure security management services under Linux (Linux)
- What is Java EE (Programming)
- C language sorting instance (select, bubble, insert, binary, fast) (Programming)
- Linux partition command (Linux)
- Kubernetes cluster deployment (Server)
- PLSQL often lose resolution process automatically disconnect the connection (Database)
- JavaScript event handling Detailed (Programming)
- osprofiler use OpenStack Cinder Lane (Server)
- Tmux Crash Course: Tips and adjustment (Linux)
- Linux environment RabbitMQ installation and monitoring of plug-in installation (Linux)
- Ubuntu study notes and related problem solving (Linux)
- Production environment Linux bonding method standby mode slave card switch (Server)
- Use OpenSSL for RSA encryption and decryption (Linux)
- Do not enter password login ssh (Server)
- MySQL 5.6.12 binary log path switching binlog (Database)
- Build a Linux development environment under STC89C52RC (Linux)
- EXP-00091 Error resolved (Database)
- Java in several ways of using MongoDB (Programming)
- Ubuntu 14.04 installed NVIDIA graphics driver (Linux)
- Linux RHCS basic maintenance commands (Linux)
     
           
     
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.