Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how i can enable 2fa authentication to another user that root? #21288

Open
onlineapps-cloud opened this issue Nov 19, 2024 · 0 comments
Open
Labels

Comments

@onlineapps-cloud
Copy link

Explain what happens

hi, i installed today cockpit on debian 12, and want to enable 2fa, using this guide:

sudo apt-get install libpam-google-authenticator libqrencode-dev -y

google-authenticator -t -d -f -r 3 -R 30 -W -Q UTF8

sudo bash -c 'echo "auth required pam_google_authenticator.so nullok" >> /etc/pam.d/cockpit'

sudo systemctl restart cockpit 

but 2fa code is not requested on login to non root users!, if i delete nullok from /etc/pam.d/cockpit 2fa login is requested on non root users, but OTP code is not valid, how i can enable 2fa authentication to another user that root? best regards

Version of Cockpit

287.1-0+deb12u3

Where is the problem in Cockpit?

Accounts

Server operating system

Debian

Server operating system version

12

What browsers are you using?

Firefox

System log

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant