Files changed: .gitignore CLAUDE.md credentials engine/.embcache.json engine/changelog.md engine/config.yaml engine/lib/__pycache__/agent.cpython-312.pyc engine/lib/agent.py engine/lib/lint.py engine/lint-report.md engine/sweep-full.log engine/sweep.sh vault/.obsidian/graph.json vault/.obsidian/workspace.json vault/INDEX.md vault/archive/projects/mmud/last-ember-chronicle.html vault/archive/projects/mmud/last-ember-howto.html vault/archive/projects/mmud/last-ember.html vault/archive/projects/mmud/mmud-phase5-prompt.md vault/archive/projects/mmud/mmud-phase6-prompt.md vault/archive/projects/mmud/mmud-prompts/mmud-prompts/01-update-planned.md vault/archive/projects/mmud/mmud-prompts/mmud-prompts/02-npc-nodes.md vault/archive/projects/mmud/mmud-prompts/mmud-prompts/03-darkcragg.md vault/archive/projects/mmud/mmud-prompts/mmud-prompts/04-dcrg-node.md vault/archive/projects/mmud/mmud-prompts/mmud-prompts/05-phase5.md vault/archive/projects/mmud/mmud-prompts/mmud-prompts/06-phase6.md vault/archive/projects/mmud/mmud-prompts/mmud-prompts/README.md vault/archive/projects/mmud/mmud-prompts/mmud-prompts/mmud-project.md vault/docs/hardware/environment.md vault/docs/hardware/ip-allocation.md vault/docs/matrix/archivist.md vault/docs/matrix/matrix_host.md vault/docs/matrix/mautrix_signal.md vault/docs/matrix/synapse.md vault/docs/matrix/synapse_retention_discovery.md vault/docs/navi/cc-rules.md vault/docs/navi/deployment.md vault/docs/navi/themes.md vault/docs/services/ots-setup.md vault/docs/services/services.md vault/docs/services/usenet.md vault/docs/software/authentik.md vault/docs/software/caddy.md vault/docs/software/dns.md vault/docs/software/geo-tools.md vault/docs/software/recon.md vault/docs/software/searxng.md vault/glossary.md vault/notes/echo6-landing-page-data-export.md vault/notes/ia-download-queue.md vault/plans/vaultwarden-plan.md vault/projects/advbbs-project.md vault/projects/argus.md vault/projects/deploy-livesync.md vault/projects/matrix-synapse-deployment.md vault/projects/meshtastic-headscale-runbook.md vault/projects/mmud-project.md vault/runbooks/add-peertube-channel.md vault/runbooks/authentik-access-groups.md vault/runbooks/authentik-create-invitation.md vault/runbooks/authentik-oidc-application.md vault/runbooks/authentik-upgrade.md vault/runbooks/ct-runbook.md vault/runbooks/edge2-access-reference.md vault/runbooks/expose-service-contabo.md vault/runbooks/expose-service-edge2.md vault/runbooks/expose-service-home.md vault/runbooks/headscale-onboard-node.md vault/runbooks/ia-cli-reference.md vault/runbooks/ia-download-mirror.md vault/runbooks/idahomesh-bridge-setup.md vault/runbooks/idahomesh-vpn-device-setup.md vault/runbooks/lxc-service-migration.md vault/runbooks/mailcow-create-mailbox.md vault/runbooks/meshmonitor-password-reset.md vault/runbooks/meshtastic-sidecar-node.md vault/runbooks/meshtasticd-sim-nodes-runbook.md vault/runbooks/nordvpn-lxc.md vault/runbooks/peertube-remote-runner.md vault/runbooks/pg-backup.md vault/runbooks/pi-nas-omv-runbook.md vault/runbooks/pipeline-patterns.md vault/runbooks/proxmox-create-ubuntu-vm.md vault/runbooks/proxmox-onboard-node.md vault/runbooks/recon-operations.md vault/runbooks/recon-service-integration.md vault/runbooks/syncthing-add-node.md vault/session-resume/SESSION-HANDOFF-meshai-test.md
141 lines
3.6 KiB
Markdown
141 lines
3.6 KiB
Markdown
---
|
|
title: MeshMonitor Admin Password Reset
|
|
type: runbook
|
|
tags:
|
|
- proxmox
|
|
aliases: []
|
|
related:
|
|
- [[proxmox-onboard-node]]
|
|
- [[recon-service-integration]]
|
|
- [[ct-runbook]]
|
|
- [[headscale-onboard-node]]
|
|
- [[recon-operations]]
|
|
updated: 2026-06-18
|
|
---
|
|
# MeshMonitor Admin Password Reset
|
|
|
|
## Overview
|
|
|
|
Reset the admin password for MeshMonitor web interface.
|
|
|
|
| Item | Value |
|
|
|------|-------|
|
|
| Service | MeshMonitor |
|
|
| Location | utility CT 100 (192.168.1.100:8080) |
|
|
| Database | SQLite at `/data/meshmonitor.db` |
|
|
|
|
## Prerequisites
|
|
|
|
- SSH access to Proxmox utility node (192.168.1.241) as root
|
|
- `sshpass` installed on local machine
|
|
- `python3` with `bcrypt` module (for generating password hash)
|
|
|
|
## Quick Reset (One-liner)
|
|
|
|
Reset to a specific password (generates hash inside container to avoid escaping issues):
|
|
|
|
```bash
|
|
sshpass -p '7redditGold' ssh -o StrictHostKeyChecking=no root@192.168.1.241 'pct exec 100 -- docker exec meshmonitor node -e "
|
|
const Database = require(\"better-sqlite3\");
|
|
const bcrypt = require(\"bcrypt\");
|
|
const db = new Database(\"/data/meshmonitor.db\");
|
|
const hash = bcrypt.hashSync(\"7redditGold\", 10);
|
|
db.prepare(\"UPDATE users SET password_hash = ? WHERE username = ?\").run(hash, \"admin\");
|
|
console.log(\"Password updated to 7redditGold\");
|
|
db.close();
|
|
"'
|
|
```
|
|
|
|
To use a different password, replace both instances of `7redditGold` (SSH password and new MeshMonitor password).
|
|
|
|
## Step-by-Step Process
|
|
|
|
### 1. SSH to Proxmox Host
|
|
|
|
```bash
|
|
ssh root@192.168.1.241
|
|
```
|
|
|
|
### 2. Enter the Container
|
|
|
|
```bash
|
|
pct exec 100 -- bash
|
|
```
|
|
|
|
### 3. Option A: Use Built-in Reset Script (Random Password)
|
|
|
|
```bash
|
|
docker exec meshmonitor node /app/reset-admin.mjs
|
|
```
|
|
|
|
This generates a random password - save the output.
|
|
|
|
### 3. Option B: Set Specific Password via Node.js
|
|
|
|
Generate a bcrypt hash first (run on any machine with Node.js):
|
|
|
|
```bash
|
|
node -e "const bcrypt = require('bcrypt'); \
|
|
bcrypt.hash('YOUR_PASSWORD_HERE', 10).then(h => console.log(h));"
|
|
```
|
|
|
|
Then update the database:
|
|
|
|
```bash
|
|
docker exec meshmonitor node -e "
|
|
const Database = require('better-sqlite3');
|
|
const db = new Database('/data/meshmonitor.db');
|
|
db.prepare(\"UPDATE users SET password_hash = ? WHERE username = 'admin'\")
|
|
.run('\$2b\$10\$YOUR_HASH_HERE');
|
|
db.close();
|
|
"
|
|
```
|
|
|
|
### 4. Verify Login
|
|
|
|
Open http://192.168.1.100:8080 and log in with:
|
|
- Username: `admin`
|
|
- Password: (your new password)
|
|
|
|
## Troubleshooting
|
|
|
|
### Check Current Admin User
|
|
|
|
```bash
|
|
docker exec meshmonitor node -e "
|
|
const Database = require('better-sqlite3');
|
|
const db = new Database('/data/meshmonitor.db');
|
|
console.log(db.prepare(\"SELECT * FROM users WHERE username='admin'\").get());
|
|
db.close();
|
|
"
|
|
```
|
|
|
|
### List All Users
|
|
|
|
```bash
|
|
docker exec meshmonitor node -e "
|
|
const Database = require('better-sqlite3');
|
|
const db = new Database('/data/meshmonitor.db');
|
|
console.log(db.prepare('SELECT id, username, is_admin, is_active FROM users').all());
|
|
db.close();
|
|
"
|
|
```
|
|
|
|
### Container Not Running
|
|
|
|
```bash
|
|
# On Proxmox host
|
|
pct exec 100 -- docker ps -a
|
|
pct exec 100 -- docker start meshmonitor
|
|
```
|
|
|
|
## Notes
|
|
|
|
- The `reset-admin.mjs` script generates random passwords; use direct DB update for specific passwords
|
|
- SQLite3 CLI is not installed in the container; use Node.js with `better-sqlite3`
|
|
- Password column is `password_hash` in the `users` table (lowercase)
|
|
- **Shell escaping gotcha:** Bcrypt hashes contain `$` characters (e.g., `$2b$10$...`) which get interpreted by the shell. Always use single quotes around the outer SSH command to preserve them, or generate the hash inside the container using `bcrypt.hashSync()` directly
|
|
|
|
---
|
|
|
|
*Created: 2026-02-04*
|