Public bug reported: I noticed when creating a 12.04 VM with vmbuilder, the template file /etc/vmbuilder/ubuntu/sudoers.tmpl that is used to generate the /etc/sudoers appears to be quite outdated. From my understanding on 12.04 you are supposed to use the "sudo" group for putting users in, to allow sudo access and "admin" was just hanging around for backward compatibility. The template file does not include a "sudo" entry in the /etc/sudoers
Current template: ---- # /etc/sudoers # # This file MUST be edited with the 'visudo' command as root. # # See the man page for details on how to write a sudoers file. # 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 # User alias specification # Cmnd alias specification # User privilege specification root ALL=(ALL) ALL # Members of the admin group may gain root privileges %admin ALL=(ALL) ALL ---- I modified the /etc/vmbuilder/ubuntu/sudoers.tmpl to match a typical phyical install (ie, from CD) and my issue was solved. Modified template file: ---- # # 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 secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" # Host alias specification # User alias specification # Cmnd alias specification # User privilege specification root ALL=(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 ---- ** Affects: vm-builder (Ubuntu) Importance: Undecided Status: New ** Description changed: I noticed when creating a 12.04 VM with vmbuilder, the template file /etc/vmbuilder/ubuntu/sudoers.tmpl that is used to generate the /etc/sudoers appears to be quite outdated. From my understanding on 12.04 you are supposed to use the "sudo" group for putting users in, to allow sudo access and "admin" was just hanging around for backward - compatibility. The templates file does not include a "sudo" entry in the + compatibility. The template file does not include a "sudo" entry in the /etc/sudoers - Currently template: + Current template: ---- # /etc/sudoers # # This file MUST be edited with the 'visudo' command as root. # # See the man page for details on how to write a sudoers file. # 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 # User alias specification # Cmnd alias specification # User privilege specification root ALL=(ALL) ALL # Members of the admin group may gain root privileges %admin ALL=(ALL) ALL ---- I modified the /etc/vmbuilder/ubuntu/sudoers.tmpl to match a typical phyical install (ie, from CD) and my issue was solved. Modified template file: ---- # # 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 secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" # Host alias specification # User alias specification # Cmnd alias specification # User privilege specification root ALL=(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 ---- -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to vm-builder in Ubuntu. https://bugs.launchpad.net/bugs/994199 Title: vmbuilder and /etc/sudoers template missing "sudo" group support To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/994199/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs