google / google-authenticator-libpam

Apache License 2.0
1.8k stars 286 forks source link

How to change configuration after original setup for a user? #237

Closed mrandreastoth closed 12 months ago

mrandreastoth commented 12 months ago

I've successfully set up google-authenticator on my server but would now like to change a parameters I used in the original set-up for a user, but how do I do this while still maintaining all the other settings?

Setup options.

ThomasHabets commented 12 months ago

~/.google_authenticator is just a text file. The first line is the secret. The 8 digit codes in the end are backup codes. The other lines are settings.

You can just edit the file.

mrandreastoth commented 12 months ago

Yes, I figured this was the case, but where is the content documented to allow proper editing of the file?

ThomasHabets commented 12 months ago

-> #238