initial setup

This commit is contained in:
2023-07-12 11:38:47 +02:00
commit 8be7ad0a25

12
script.sh Normal file
View File

@@ -0,0 +1,12 @@
#! /bin/bash
for user in "$@" ; do
password=$(pwgen 15 1)
useradd $user
echo ${password} | passwd --stdin ${user}
echo ${user};${password} > user.csv
done