Bug 1224454 - Upgrading from Microos to Aeon gives incorrect user group
Summary: Upgrading from Microos to Aeon gives incorrect user group
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Aeon
Classification: openSUSE
Component: Base (show other bugs)
Version: Current
Hardware: x86-64 SUSE Other
: P5 - None : Normal
Target Milestone: ---
Assignee: Richard Brown
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-18 19:14 UTC by Ray Yip
Modified: 2024-05-18 19:17 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ray Yip 2024-05-18 19:14:39 UTC
After upgrading from Microos to Aeon listing the home directory shows this:

ray@localhost:~> ls -ltr
total 340
drwxr-xr-x. 1 ray 1000      0 Mar 21 21:28 Templates
drwxr-xr-x. 1 ray 1000      0 Mar 21 21:28 Public
drwxr-xr-x. 1 ray 1000      0 Mar 21 21:28 Desktop
drwxr-xr-x. 1 ray 1000      0 Mar 21 21:28 Videos
drwxr-xr-x. 1 ray 1000      0 Mar 21 21:28 Music
drwxr-xr-x. 1 ray 1000     46 Mar 22 14:59 Downloads
drwxr-xr-x. 1 ray 1000     84 Mar 22 22:08 Pictures
drwxr-xr-x. 1 ray 1000    144 Mar 23 22:32 Documents

notice the group here is 1000, which means /etc/group was not ported over

Distrobox was not working either:

ray@localhost:~> distrobox create -n test rockylinux:9
Trying to pull registry.opensuse.org/opensuse/distrobox:latest...
Getting image source signatures
Copying blob 5d8902336850 [==========>---------------------------] 62.0MiB / 214.0MiB | 10.9 MiB/s
Copying blob 4c696967ad5d done   | 
Copying blob 5d8902336850 done   | 
Copying blob 4c696967ad5d done   | 
Error: copying system image from manifest list: writing blob: adding layer with blob "sha256:4c696967ad5dc2bf3ff451c9598c6b9eaf506917a0db88054215da044ecbd1e5": ApplyLayer stdout:  stderr: potentially insufficient UIDs or GIDs available in user namespace (requested 0:15 for /etc/shadow): Check /etc/subuid and /etc/subgid if configured locally and run "podman system migrate": lchown /etc/shadow: invalid argument exit status 1

<applied the first fix here>
<got another error about groups>

ray@localhost:~> distrobox enter test
Error: unable to start container "7ed9fa594050c33f11e631ac48cbd4382994171b4198964a33e5868ad8deff35": creating temporary passwd file for container 7ed9fa594050c33f11e631ac48cbd4382994171b4198964a33e5868ad8deff35: failed to get current group: group: unknown groupid 1000

-------------
The Fix....
For distrobox:
sudo usermod --add-subuids 10000-75535 ray
sudo usermod --add-subgids 10000-75535 ray
podman system migrate

For the group:
looking at /etc/group, it was missing an entry. Adding the user back to group allows distrobox to function again:

<edit /etc/group>
ray:x:1000:
Comment 1 Richard Brown 2024-05-18 19:17:10 UTC
Fixed in tik v0.9.4 and later https://github.com/sysrich/tik/commit/5921d324acbf18f55e8216911641fc92bfe4703c