add hannah smb user, fix music dir permissions

This commit is contained in:
2026-08-29 20:38:35 -04:00
parent f7888a8f8d
commit c287fb0145
3 changed files with 11 additions and 7 deletions
+3 -2
View File
@@ -25,6 +25,7 @@ USERS=(
"timothykim:1000:1000:/bin/bash:home:wheel,video,docker,sambagroup"
"yireh:1100:1100:/sbin/nologin:nohome:sambagroup"
"isaac:1101:1101:/sbin/nologin:nohome:sambagroup"
"hannah:1102:1102:/sbin/nologin:nohome:sambagroup"
)
# Abort if an existing entity's numeric ID doesn't match what we expect
@@ -122,7 +123,7 @@ if ! mountpoint -q /mnt/backup; then
echo "[!] /mnt/backup is not mounted — skipping samba passdb restore"
echo " mount the USB backup drive (RUNBOOK step 5) and re-run if you want"
echo " to restore preserved SMB passwords; otherwise set them manually:"
echo " for u in timothykim yireh isaac; do smbpasswd -a \"\$u\"; done"
echo " for u in timothykim yireh isaac hannah; do smbpasswd -a \"\$u\"; done"
elif [ -f "$PASSDB_SRC/passdb.tdb" ]; then
install -d -m 700 /var/lib/samba/private
cp "$PASSDB_SRC"/*.tdb /var/lib/samba/private/
@@ -130,7 +131,7 @@ elif [ -f "$PASSDB_SRC/passdb.tdb" ]; then
echo "[+] restored samba passdb from $PASSDB_SRC/"
else
echo "[!] no samba passdb backup found at $PASSDB_SRC/"
echo " run: for u in timothykim yireh isaac; do smbpasswd -a \"\$u\"; done"
echo " run: for u in timothykim yireh isaac hannah; do smbpasswd -a \"\$u\"; done"
fi
echo ""