step_param #9

Merged
v0id1st merged 2 commits from step_param into main 2026-07-13 12:56:42 +02:00
Showing only changes of commit 08983174b8 - Show all commits

View File

@@ -8,10 +8,10 @@ LOGIN="$1"
[ -z "$LOGIN" ] && { echo "Użycie: $0 <login>"; exit 1; }
STEP=$2
PASS="$(openssl rand -base64 16 | sed 's/[\/\+\=\\]//g')"
add_user() {
adduser -D -s /bin/sh -h "/home/$LOGIN" -H "$LOGIN"
PASS="$(openssl rand -base64 16 | sed 's/[\/\+\=\\]//g')"
echo "$LOGIN":"$PASS" | chpasswd
zfs create -o mountpoint="/home/$LOGIN" -o quota=200M "tank/ROOT/homes/$LOGIN"