Codeschnipsel BASH – User erstellen

#!/bin/bash
groupadd -g 1234 user1
useradd  -u 1234 -g 5678 -G 1234,8642,97531,91 -c 'User Number #1'  -m  -s /bin/bash  user1

echo -e "ChangeMe\nChangeMe" | passwd user1

chage -d 0 user1