Skip to content

Instantly share code, notes, and snippets.

@chgeuer
Last active June 22, 2016 10:20
Show Gist options
  • Save chgeuer/d8ebe3f9d3ac35988e23b6ad48598e53 to your computer and use it in GitHub Desktop.
Save chgeuer/d8ebe3f9d3ac35988e23b6ad48598e53 to your computer and use it in GitHub Desktop.

I created VMs (OpenLogic/CentOS/7.2/latest) with "disablePasswordAuthentication": "true" (See my template. My local username is "chgeuer".

When I launch VMs in "Europe West" / Amsterdam, the file /etc/sudoers.d/waagent reads like this:

chgeuer ALL = (ALL) NOPASSWD: ALL

So I can sudo su without a password prompt. Good!

When I look at my Germany Central / Frankfurt VM, the file /etc/sudoers.d/waagent reads like this:

chgeuer ALL = (ALL) NOPASSWD

This missing : ALL at the end forces me to enter a password which doesn't exist...

[chgeuer@vm0 ~]$ sudo su
[sudo] password for chgeuer:
Sorry, try again.

Any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment