vmbuilder and /etc/sudoers template missing "sudo" group support
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
vm-builder (Ubuntu) |
Triaged
|
High
|
Serge Hallyn |
Bug Description
I noticed when creating a 12.04 VM with vmbuilder, the template file /etc/vmbuilder/
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,
# 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/
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_
# 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
----
description: | updated |
Changed in vm-builder (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → High |
status: | Confirmed → Triaged |
If and when the template is updated, when you supply the default user to add to the system when you build the VM, they should be added to "sudo" group and not the "admin" group.