Skip to content

Instantly share code, notes, and snippets.

View joaobolson's full-sized avatar

joaobolson

  • Joined Apr 30, 2026
View GitHub Profile
@joaobolson
joaobolson / tokenize-adminrbc.sh
Last active April 30, 2026 22:36
Tokenize adminrbc
#!/bin/bash
# Dataprise — Tokenize adminrbc using current user's credentials (GUI prompt)
# and the per-device adminrbc password (typed live in Live Terminal).
current_user=$(stat -f%Su /dev/console)
current_uid=$(id -u "$current_user" 2>/dev/null)
if [ -z "$current_user" ] || [ "$current_user" = "root" ] || [ "$current_user" = "loginwindow" ]; then
echo "✗ No user is logged in at the console. Aborting."
exit 1