Skip to content
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.

Failed to change user id to "root" #202

Closed
ThomasHabets opened this issue Oct 10, 2014 · 1 comment
Closed

Failed to change user id to "root" #202

ThomasHabets opened this issue Oct 10, 2014 · 1 comment

Comments

@ThomasHabets
Copy link
Contributor

Original issue 203 created by william2003 on 2012-08-21T03:46:08.000Z:

What steps will reproduce the problem?

  1. Install google-authenticator on Ubuntu host
  2. Copy google-authenticator & pam_google_authenticator.so to ESXi 5.0 host
  3. Generate token using google-authenticator which stores /.google-authenticator
  4. Modify /etc/pam.d/system-auth

%PAM-1.0

auth required /lib/security/$ISA/pam_env.so
auth required /lib/security/$ISA/pam_access.so
auth required /lib/security/$ISA/pam_per_user.so /etc/security/login.map
auth required /lib/security/$ISA/pam_google_authenticator.so secret=/.google-authenticator
account required /lib/security/$ISA/pam_per_user.so /etc/security/login.map

session required /lib/security/$ISA/pam_per_user.so /etc/security/login.map

password include passwd

  1. Update /etc/ssh/sshd_config with ChallengeResponseAuthentication yes
  2. Reload SSH /etc/init.d/SSH restart
  3. Login

What is the expected output? What do you see instead?
Expecting system to accept password and prompt for code, but just keeps prompting for login

/var/log/syslog shows the following error message:
2012-08-21T03:40:00Z sshd(pam_google_authenticator)[1355443]: Failed to change user id to "root"

What version of the product are you using? On what operating system?
Latest version, trying this on VMware ESXi 5.0

Please provide any additional information below.

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

No branches or pull requests

1 participant