containers/jumphost/create_users.sh
Stefan Harmuth decffadac5
All checks were successful
Build OCI Containers / Build Containers (push) Successful in 1m38s
hosting the jump creating users; finetuning
2024-06-02 13:50:22 +02:00

8 lines
218 B
Bash

#!/usr/bin/env bash
cd /jumphost_users
for user in *; do
uid=`cat /jumphost_users/${user}`
/usr/sbin/groupadd -g ${uid} ${user}
/usr/sbin/useradd -d /home/${user} -m -s /bin/bash -u ${uid} -g ${uid} ${user}
done