google / google-authenticator-libpam

Apache License 2.0
1.75k stars 280 forks source link

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

Closed mrandreastoth closed 7 months ago

mrandreastoth commented 7 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 7 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 7 months ago

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

ThomasHabets commented 7 months ago

-> #238