TOTPPROV(1)
π TOTPPROV π
okay bestie, welcome to totpprov β that's TOTPPROV section 1 of the manual, and she's a whole vibe. β¨
πΈ NAME πΈ
totpprov β the simple provisioning script for totpcgi, no cap π
β¨ SYNOPSIS β¨
totpprov [-c /path/to/provisioning.conf] command username
π¦ DESCRIPTION π¦
So like, this is a simple command-line provisioning script for totpcgi. That's it, that's the job. π«Ά
It pulls the backend info and the default parameters data that live in provisioning.conf and uses all of that to operate on user records. Like it literally just reads the config and does stuff to users. Main character energy fr. π
π OPTIONS π
--versionβ shows the program's version number and then dips. bye! π-h,--helpβ shows this help message and exits. your lil safety net π₯Ί--hotpβ generates an HOTP token instead of a TOTP token. pick your fighter β¨-c CONFIG_FILE,--config=CONFIG_FILEβ the path toprovisioning.conf. default is/etc/totpcgi/provisioning.confif you don't say otherwise π
π COMMANDS π
okay so here's the menu of things you can make it do, one bullet at a time, and yes every single one is here because we don't skip. periodt.
delete-userβ deletes the user record. gone, deleted, not coming back πdelete-user-stateβ deletes any existing state information for the userdelete-user-pincodeβ deletes the pincode entry for the userdelete-user-tokenβ deletes the token that was issued to the userset-user-pincodeβ sets the pincode for the userencrypt-user-tokenβ encrypts the existing token using the user's pincode πdecrypt-user-tokenβ decrypts the existing encrypted token using the user's pincode πgenerate-user-tokenβ generates a brand new token for the user π±provision-userβ provisions a whole new user. the full glow-up π§
π EXAMPLES π
To provision a user:
totpprov provision-user bobafett
totpprov --hotp provision-user bobafett
To delete a user:
totpprov delete-user bobafett
To delete a token:
totpprov delete-user-token bobafett
To set/change user pincode:
totpprov set-user-pincode bobafett
To generate a new google-authenticator token for user:
totpprov generate-user-token bobafett
π AUTHOR π
konstantin@linuxfoundation.org
License: GPLv2+
β COPYRIGHT β
Linux Foundation and contributors
k that's the whole page bestie, go provision something iconic π πΈ
version 0.6, dated 2013-09-20 β mwah, drink some water, ily π«Άβ¨
π¦ where this page comes from
- fedora 43: python3-totpcgi 0.6.0-0.27.20190713git.fc43 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms