I encounter the same bug on Trusty; for reference, the diff between
sudo's and python-vm-builder's sudoers seems to be:

| scfc@vmbuilder-scfc:~/sudo-1.8.9p5$ diff -u debian/sudoers 
/etc/vmbuilder/ubuntu/sudoers.tmpl 
| --- debian/sudoers      2016-10-10 08:10:26.000000000 +0000
| +++ /etc/vmbuilder/ubuntu/sudoers.tmpl  2008-09-18 09:11:09.000000000 +0000
| @@ -1,14 +1,14 @@
| +# /etc/sudoers
|  #
|  # This file MUST be edited with the 'visudo' command as root.
|  #
| -# Please consider adding local content in /etc/sudoers.d/ instead of
| -# directly modifying this file.
| -#
|  # See the man page for details on how to write a sudoers file.
| -#
| -Defaults       env_reset
| -Defaults       mail_badpass
| -Defaults       
secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
| +# Defaults
| +
| +Defaults       !lecture,tty_tickets,!fqdn
| +
| +# Uncomment to allow members of group sudo to not need a password
| +# %sudo ALL=NOPASSWD: ALL
|  
|  # Host alias specification
|  
| @@ -17,14 +17,7 @@
|  # Cmnd alias specification
|  
|  # User privilege specification
| -root   ALL=(ALL:ALL) ALL
| +root   ALL=(ALL) ALL
|  
|  # Members of the admin group may gain root privileges
|  %admin ALL=(ALL) ALL
| -
| -# Allow members of group sudo to execute any command
| -%sudo  ALL=(ALL:ALL) ALL
| -
| -# See sudoers(5) for more information on "#include" directives:
| -
| -#includedir /etc/sudoers.d
| scfc@vmbuilder-scfc:~/sudo-1.8.9p5$

There is also /etc/vmbuilder/ec2/sudoers.tmpl where the diff is:

| scfc@vmbuilder-scfc:~/sudo-1.8.9p5$ diff -u debian/sudoers 
/etc/vmbuilder/ec2/sudoers.tmpl       
| --- debian/sudoers      2016-10-10 08:10:26.000000000 +0000
| +++ /etc/vmbuilder/ec2/sudoers.tmpl     2009-09-23 15:58:32.000000000 +0000
| @@ -1,14 +1,11 @@
| +# /etc/sudoers
|  #
|  # This file MUST be edited with the 'visudo' command as root.
|  #
| -# Please consider adding local content in /etc/sudoers.d/ instead of
| -# directly modifying this file.
| -#
|  # See the man page for details on how to write a sudoers file.
|  #
| +
|  Defaults       env_reset
| -Defaults       mail_badpass
| -Defaults       
secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
|  
|  # Host alias specification
|  
| @@ -17,14 +14,16 @@
|  # Cmnd alias specification
|  
|  # User privilege specification
| -root   ALL=(ALL:ALL) ALL
| +root   ALL=(ALL) ALL
| +
| +# Uncomment to allow members of group sudo to not need a password
| +# (Note that later entries override this, so you might need to move
| +# it further down)
| +# %sudo ALL=NOPASSWD: ALL
|  
|  # Members of the admin group may gain root privileges
|  %admin ALL=(ALL) ALL
|  
| -# Allow members of group sudo to execute any command
| -%sudo  ALL=(ALL:ALL) ALL
| -
| -# See sudoers(5) for more information on "#include" directives:
| -
| -#includedir /etc/sudoers.d
| +# ubuntu user is default user in ec2-images.  
| +# It needs passwordless sudo functionality.
| +ubuntu  ALL=(ALL) NOPASSWD:ALL
| scfc@vmbuilder-scfc:~/sudo-1.8.9p5$

@nacc, are you working on this?  I'd be willing to test new packages.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1618899

Title:
  vmbuilder fails with dist-upgrade with release xenial

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/1618899/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to