mkdir -p /usr/home
pwd_mkdb -p /etc/master.passwd
pw user add -n mlaus -c "Mirek Laus" -d /usr/home/mlaus -m -u 2000 mlaus
pw user add -n zjun -c "Zbynek Jun" -d /usr/home/zjun -m -u 2001 zjun
chsh -s bash mlaus
chsh -s bash zjun
mkdir ~mlaus/.ssh
mkdir ~zjun/.ssh
cat <<EOF >>~mlaus/.ssh/authorized_keys
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBpSnJXmyHjzR1x3fXrbu3LXY9qsy4zmX/o11GtzFfLx mirek@betelgeuse.local
EOF
cat <<EOF >>~zjun/.ssh/authorized_keys
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC7IzSXHLLoZZ/ul6L6Pj1eQBfQxGvg8P1LflAGYsraRAmABoh712pWyA1WoyvFtKSo5DJ19OWf64gQuEeAuaxPzePuSIvIR5T6/QAj68aJvgcSUdovZgE0cubDO8ofLlX/Qf6lG1T2tyADaQp4kotYA0X5U08odPjl+t+3Ykmvhq0eVRIYHIq8v7PzRnpYzvuAsyVdPHXmjwuDs07yHKp3KkWo1PLeCX/EEcLL7zgekNBPLE6BTeUTbAAlOyo+qhvmgEAFOEaQU1UVb8GmmwZVNr7Dic9/zwUzR6vZ1/KcpjKz0nYhRNnDL9tYn7Hdt64M4L0a4PezNoULPBKo9Z5eZmVohqmSgr8AO2jTbQ2QsUu1OmyQsWZF811eK/g8z46ICFBjMCCcZEzKL4gkyTPOEe1AG3dOaymtqwkp4qxB9e7sHDbhlmY4DhnMokraef0nhC2mab59i4XFrnn52fLnCH3Mbe6yMFqZPfborCv0ApVZox8I8VB/73Grne41m2e6EFVvdn7otnSYUKsYoKoKrNITJ9s6L2xVpHdzBhukyOnbt1uNwoAeGEL6XqDYsP0R4OE2ErdmMkvHXj8DwmLY86dm3F/jOrM5kcEdR+WNr4imEgdThjn/PbXk2anAgY8rrnEq1rErq9v8kWRvms/hmrZM2QEBHWRjp6j4jy59Uw== zbynek@ntb
EOF
chown -R mlaus:wheel /usr/home/mlaus
chown -R zjun:wheel /usr/home/zjun
cd ~mlaus && rm -v .bash_history .cshrc .login .login_conf .mail_aliases .mailrc .profile .rhosts .shrc
cd ~zjun && rm -v .bash_history .cshrc .login .login_conf .mail_aliases .mailrc .profile .rhosts .shrc
cat <<EOF>/usr/local/etc/sudoers.d/portax-admin
%wheel ALL=(ALL) NOPASSWD: ALL
EOF
pw user mod -G wheel -n mlaus
pw user mod -G wheel -n zjun
