8 lines
108 B
Bash
8 lines
108 B
Bash
|
#!/bin/bash
|
||
|
CMD=$(which useradd)
|
||
|
|
||
|
for USER in "$@"; do
|
||
|
$CMD -m $USER
|
||
|
echo "$USER:$USER" | chpasswd
|
||
|
done
|