Lucid containers don't have sudo set up

Bug #938752 reported by Martin Albisetti on 2012-02-22
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lxc (Ubuntu)
Undecided
Unassigned

Bug Description

With the latest ubuntu template change, the "ubuntu" user in the Lucid containers no longer have sudo access and needs to be manually added.

There's a temporary workaround (from outside your container): chroot /var/lib/lxc/<container>/rootfs passwd

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: lxc 0.7.5-3ubuntu29
ProcVersionSignature: Ubuntu 3.2.0-17.26-generic-pae 3.2.6
Uname: Linux 3.2.0-17-generic-pae i686
ApportVersion: 1.92-0ubuntu1
Architecture: i386
Date: Wed Feb 22 12:20:50 2012
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111012)
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: lxc
UpgradeStatus: Upgraded to precise on 2011-12-02 (82 days ago)

Related branches

Martin Albisetti (beuno) wrote :
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lxc - 0.7.5-3ubuntu30

---------------
lxc (0.7.5-3ubuntu30) precise; urgency=low

  [ Serge Hallyn ]
  * 0048-warn-if-container-started: If container startup fails because the
    container is already running, give an error message to that effect.
    (LP: #938765)

  [ Stéphane Graber ]
  * 0049-ubuntu-template-sudo-and-cleanup: Always make the user part of the
    sudo group. This group has been around since at least 10.04 and is more
    reliable than the admin group. Still add the user to the admin group
    until 12.04 as some tool expect that. (LP: #938752)
    Also fix a minor layout issue in the generate LXC config.
 -- Stephane Graber <email address hidden> Wed, 22 Feb 2012 12:33:32 -0500

Changed in lxc (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers