-
Notifications
You must be signed in to change notification settings - Fork 47
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
sudo: PAM account management error: User not known to the underlying authentication module on first try of sudo -i
#33
Comments
I've also seen
|
The same crash can also be observed by running It doesn't crash without oslogin installed, so it seems to be related to the oslogin NSS module. |
Steps to reproduce: gcloud compute images create nixos-repro --source-uri gs://nixos-cloud-images/nixos-image-20.09.3531.3858fbc08e6-x86_64-linux.raw.tar.gz
gcloud compute instances create nixos-repro --zone us-central1-a --image nixos-repro --metadata enable-oslogin=TRUE
gcloud compute instances add-iam-policy-binding nixos-repro --zone us-central1-a --member=user:current@user.com --role=roles/compute.osAdminLogin
gcloud compute os-login ssh-keys add --key-file=$HOME/.ssh/id_ed25519.pub --ttl=30d
export USER=$(gcloud compute os-login describe-profile --format=json | jq '.posixAccounts[0].username' -r)
export IP=$(gcloud compute instances describe nixos-repro --format=json | jq '.networkInterfaces[0].accessConfigs[0].natIP' -r)
ssh $USER@$IP
sudo -i
dmesg |
@onsails I think the ssh part can be simplified with |
yep gcloud compute images create nixos-repro --source-uri gs://nixos-cloud-images/nixos-image-20.09.3531.3858fbc08e6-x86_64-linux.raw.tar.gz
gcloud compute instances create nixos-repro --zone us-central1-a --image nixos-repro --metadata enable-oslogin=TRUE
gcloud compute instances add-iam-policy-binding nixos-repro --zone us-central1-a --member=user:current@user.com --role=roles/compute.osAdminLogin
gcloud compute ssh nixos-repro --zone us-central1-a
sudo -i
dmesg |
We don't support nixOS or support using OS Login with |
This issue has also been observed on SUSE Linux Enterprise Server. |
When logging in via OSLogin, I get an error on the first
sudo -i
invocation:This is
google-compute-engine-oslogin-20200507.00
on NixOS.The text was updated successfully, but these errors were encountered: