Use a shell script to add the position of the variable account and password

Use a shell script to add the position of the variable account and password

#!/bin/bash
adduser "$1"           
echo " $2" | passwd  --stdin  "$1" &>/dev/null

Guess you like

Origin blog.51cto.com/11342825/2423012