Uploaded image for project: 'Funtoo Linux'
  1. Funtoo Linux
  2. FL-6773

/etc/login.defs should have SUB_GID_COUNT and SUB_UID_COUNT set to 0 by default

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • CatPkg:
      app-emulation/lxd
    • Kit/Branch:
      core-kit/1.4

      Description

      There are several issues that need addressed with using subuid

      {gid} with lxc/lxd in Funtoo. The first issue I fixed months ago, just want to make sure its correct. klipkyle reminded me of it. The issue is here: https://forums.funtoo.org/topic/3180-useradd-refuses-to-create-a-user-when-lxd-is-configured-with-subuidsubgid/#comment-13542

      The second issue will cause a complete lockup and crash of your lxc/lxd a hard reboot of your system will be required and lxc/lxd will not restart.

      If you use raw.idmap: both 1000 1000 in your container config or profile to manually map the host user account to container as most howtos do for steam this is the root cause. Here is the two links to the fixes and reasoning why its broken on Funtoo.
      https://discuss.linuxcontainers.org/t/container-fails-to-restart-after-setting-raw-idmap/4333
      https://ubuntu.com/blog/custom-user-mappings-in-lxd-containers

      I'm not exactly sure I completely wrap my head around all of that. I think subuid{gid}

      are sort of pointless, causing allot more trouble than they are worth, shrug. But anyway help with fixing these issues would be greatly appreciated

        Attachments

          Activity

            People

            Assignee:
            drobbins drobbins
            Reporter:
            bcowan bcowan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: