Commands
The four commands the raaqeb binary takes, its version and help, and how to run reset-password and set-address beside a running server.
The binary takes four commands:
raaqeborraaqeb serveruns the server.raaqeb healthasks the server's/healthand exits 0 when it answers 200, 1 otherwise.raaqeb reset-passwordprints a reset link for the operator account.raaqeb reset-password --interactiveasks for the new password with hidden input instead. Either way it switches the second step off and removes the authenticator app and its backup codes; turn it on again on the sign-in settings page.raaqeb set-address <url>stores the public address, the way back in when the stored one refuses every sign-in. It exits 0 when stored, 1 when refused or there is no database yet, 2 when the text is not an origin.
raaqeb --version prints the version and raaqeb --help prints the commands with one line each. Both exit 0 and read nothing: no data directory is opened or created.
reset-password and set-address run beside the server, on the same data directory and boot settings. Run them as the user the server runs as, so every file they write keeps its owner:
- installer: as root,
su -s /bin/sh raaqeb -c 'set -a; . /etc/raaqeb/raaqeb.env; RAAQEB_DATA_DIR=/var/lib/raaqeb exec raaqeb reset-password' - installer on a Mac:
sudo -u _raaqeb sh -c 'set -a; . /usr/local/etc/raaqeb/raaqeb.env; RAAQEB_DATA_DIR=/usr/local/var/raaqeb exec raaqeb reset-password' - installer on Windows: in PowerShell as Administrator,
cd C:\ProgramData\Raaqeb; & 'C:\Program Files\Raaqeb\raaqeb.exe' reset-password; a file it creates in the data directory takes that folder's access list, so Local Service can still write it - Docker:
docker exec -it raaqeb raaqeb reset-password --interactive - Compose:
docker compose exec raaqeb raaqeb reset-password - Fly.io:
fly ssh console -C "raaqeb reset-password"