|
@@ -2,6 +2,9 @@
|
|
|
|
|
|
test -f /etc/users.list || exit 0
|
|
|
|
|
|
+echo "Change default password for user abc to random value"
|
|
|
+echo abc:`openssl rand -base64 30` | tee >(sudo chpasswd)
|
|
|
+
|
|
|
while read id username hash groups; do
|
|
|
# Skip, if user already exists
|
|
|
grep ^$username /etc/passwd && continue
|