Files
oam/snippets/create users.sh
2024-06-18 23:02:43 +02:00

9 lines
280 B
Bash

#!/usr/bin/env sh
useradd --create-home --password 'encrypted-password' --shell '/bin/bash' 'username'
useradd -m -p 'encrypted-password' -s '/bin/bash' 'username'
# Non-interactive.
# Skip finger information.
adduser --disabled-password --gecos '' --shell '/bin/sh' 'username'