LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Containers
User Name
Password
Linux - Containers This 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


Reply
  Search this Thread
Old 04-30-2023, 11:41 PM   #1
dchmelik
Senior Member
 
Registered: Nov 2008
Location: USA
Distribution: Slackware, FreeBSD, Illumos, NetBSD, DragonflyBSD, Plan9, Inferno, OpenBSD, FreeDOS, HURD
Posts: 1,066

Rep: Reputation: 147Reputation: 147
Question chroot from Slackware to newer GNU/Linux


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?
 
Old 05-01-2023, 05:41 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,582
Blog Entries: 19

Rep: Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453
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.
 
1 members found this post helpful.
Old 05-01-2023, 05:18 PM   #3
dchmelik
Senior Member
 
Registered: Nov 2008
Location: USA
Distribution: Slackware, FreeBSD, Illumos, NetBSD, DragonflyBSD, Plan9, Inferno, OpenBSD, FreeDOS, HURD
Posts: 1,066

Original Poster
Rep: Reputation: 147Reputation: 147
Yes, it was that there are more groups in Slackware.
 
Old 05-01-2023, 11:15 PM   #4
dchmelik
Senior Member
 
Registered: Nov 2008
Location: USA
Distribution: Slackware, FreeBSD, Illumos, NetBSD, DragonflyBSD, Plan9, Inferno, OpenBSD, FreeDOS, HURD
Posts: 1,066

Original Poster
Rep: Reputation: 147Reputation: 147
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).
 
Old 05-02-2023, 07:57 PM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,662
Blog Entries: 4

Rep: Reputation: 3942Reputation: 3942Reputation: 3942Reputation: 3942Reputation: 3942Reputation: 3942Reputation: 3942Reputation: 3942Reputation: 3942Reputation: 3942Reputation: 3942
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.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] ssh - Slackware as server - seems like a chroot jail, but I don't want a chroot jail petejc Slackware 7 10-24-2022 12:55 AM
chroot to run hd-installed distro's programs from chroot in live distro? silencestone Linux - Software 0 10-12-2007 06:29 AM
sudo /usr/bin/chroot /home/chroot /bin/su - xxx| /bin/su: user xxx does not exist saavik Linux - General 3 07-04-2007 10:30 AM
mount command not working in chroot. and now chroot not working mohit.jain Linux From Scratch 5 07-14-2006 03:57 AM
to chroot or not to chroot complus Linux - Security 4 02-29-2004 04:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Containers

All times are GMT -5. The time now is 08:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration