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?