Using bindhome option of ubuntu template conflicts with ubuntu user

Bug #942144 reported by Sidnei da Silva on 2012-02-27
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lxc (Ubuntu)
Serge Hallyn

Bug Description

Recent changes introduced the creation of an 'ubuntu' user with sudo access by default. However, that conflicts with the --bindhome option if the user specified for --bindhome has uid/gid 1000.

<sidnei> hallyn, hola, looks like lxc-create -t ubuntu -- -b <username> doesn't work anymore if <username> has uid/gid 1000, the ubuntu user created in the lxc has the same uid/gid
<hallyn> sidnei: gosh, good point. could you open a bug on that?
<sidnei> hallyn, oki
<hallyn> stgraber: ^ i will make lxc not create the ubuntu user if -b is specified, and add the bound user to sudo/admin group instead.
 stgraber: ^ lemme know if there's a reason that's a bad idea
<hallyn> sidnei: thanks
<sidnei> hallyn, np
<stgraber> hallyn: sounds good

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: lxc 0.7.5-3ubuntu30
ProcVersionSignature: Ubuntu 3.2.0-17.26-generic 3.2.6
Uname: Linux 3.2.0-17-generic x86_64
NonfreeKernelModules: wl nvidia
ApportVersion: 1.93-0ubuntu2
Architecture: amd64
Date: Mon Feb 27 15:30:59 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64+mac (20111208)
 PATH=(custom, user)
SourcePackage: lxc
UpgradeStatus: No upgrade log present (probably fresh install)

Related branches

Sidnei da Silva (sidnei) wrote :
Changed in lxc (Ubuntu):
status: New → Confirmed
importance: Undecided → High
Changed in lxc (Ubuntu):
assignee: nobody → Serge Hallyn (serge-hallyn)
Serge Hallyn (serge-hallyn) wrote :

Fix is in ubuntu:lxc, and will be pushed to the archive after beta freeze.

Changed in lxc (Ubuntu):
status: Confirmed → Fix Committed
Launchpad Janitor (janitor) wrote :

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

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

  * 0050-clone-lvm-sizes: make lxc-clone with lvm snapshots create a
    snapshot of the same size as the original. (LP: #939765)
  * run our dnsmasq as user 'lxc-dnsmasq' (LP: #939774)
    - add debian/lxc.postinst to create the user
    - debian/lxc.lxc-net.upstart: run dnsmasq as lxc-dnsmasq user
  * 0051-lxc-create-lvm-use-1G: bump lvm blockdev size to 1G (LP: #942338)
  * 0052-ubuntu-bind-user-conflict: don't create 'ubuntu' user when a user
    gets bound in. (LP: #942144)
  * 0053-lxc-start-pin-rootfs: don't let the container remount an underlying
    shared fs readonly (LP: #942325)
  * 0054-ubuntu-debug: add --debug option to ubuntu and ubuntu-cloud
    templates (LP: #942847)
  * 0055-ubuntu-handle-badgrp: fix the group handling to not assume a user's
    group has the user's name. (LP: #942850)
 -- Serge Hallyn <email address hidden> Tue, 28 Feb 2012 15:03:45 -0600

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

Other bug subscribers