Linux - ContainersThis forum is for the discussion of all topics relating to Linux containers. Docker, LXC, LXD, runC, containerd, CoreOS, Kubernetes, Mesos, rkt, and all other Linux container platforms are welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Lately I installed Gentoo and a couple Ubuntu variants on my PC, the latter because I administer *ubuntus for users. Personally I've always used the oldest GNU/Linux, so I want to chroot in. It works perfectly with Gentoo (able to update). When I do so with Ubuntu variants, it says the following.
Code:
groups: cannot find name for group ID 17
groups: cannot find name for group ID 215
I didn't see those in /etc/group, so what does this mean? Other than this, the chroot seems to work well, including updates, apt, etc. Do the error messages mean anything else needs to be configured for things to work right? Of course, the OS I chroot from doesn't have systemd.
Next I'll be trying same with Fedora and openSUSE... anything I need to know about the case for these?
I think it just means that the group lists in your different distros don't match exactly. Copy all the /etc/group files into one place and compare them. You can always add groups to the distro that doesn't have them.
Also, when I chroot into KDE Neon or Mint and startx, it says permisison to open the virtual console is denied; is there any fix for this? (I won't need it for Gentoo but maybe was going to try Fedora and SUSE).
Of particular concern, however, is that "the correspondence between group-names and group-IDs" match exactly wherever the names are the same.
If, for example, the group named "foo" is #20 in one file and #21 in any other, then you suddenly have a terrific headache on your hands. Because Linux knows nothing of the (conflicting ...) names – only numbers. Whereas humans (and their programs ...?) usually deal only with names.
Exactly the same problem can arise with regard to user IDs.
- - -
The fastest way to check for this problem is to touch (to create ...) an empty file, then cat each of the files into it, then sort that file, then use uniq to eliminate duplicates, then sort it again, then hope against hope that you don't find the same name twice. (Isn't the command-line fun?)
Last edited by sundialsvcs; 05-02-2023 at 08:03 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.