feat: add standalone local administrator creation mode

This commit is contained in:
2026-07-09 15:07:12 +00:00
parent 1cb0fb2a07
commit fbef9c314b
4 changed files with 172 additions and 0 deletions
+15
View File
@@ -21,6 +21,21 @@ find_available_uid() {
echo 501
}
hide_user() {
local node="$1"
local data_mount="$2"
local username="$3"
info "Hiding user account: $username"
check_user_exists "$node" "$username" || error_exit "Could not find user '$username'"
dscl -f "$node" localhost -create "/Local/Default/Users/$username" IsHidden "1" 2>/dev/null
chflags hidden "$data_mount/Users/$username"
success "User '$username' hidden"
}
delete_user() {
local node="$1"
local data_mount="$2"