Bug 1226850 - Useradd doesn't create a group under the same name despite not using the -N flag
Summary: Useradd doesn't create a group under the same name despite not using the -N flag
Status: IN_PROGRESS
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Major (vote)
Target Milestone: ---
Assignee: Michael Vetter
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-24 10:01 UTC by Alice Brooks
Modified: 2024-06-24 13:45 UTC (History)
3 users (show)

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 Alice Brooks 2024-06-24 10:01:47 UTC
So I've downloaded the latest Tumbleweed image (20240621) and ran it inside a vm, however any user that's created is no longer created with a matching named group, this includes ones from the initial installer and any new ones created via useradd

You can recreate this either by running through the installer as mentioned above, or something like below:

```
sudo useradd -m test 
cat /etc/group | grep test
```

Prints out nothing, as the group test was never created
Comment 1 Thorsten Kukuk 2024-06-24 12:01:23 UTC
The econf patch is broken:
newfstatat(AT_FDCWD, "/etc//usr/etc/login.defs", 0x7ffe8a7bf5b0, AT_SYMLINK_NOFOLLOW) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/run//usr/etc/login.defs", 0x7ffe8a7bf580, AT_SYMLINK_NOFOLLOW) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/etc//usr/etc/login.defs", 0x7ffe8a7bf550, AT_SYMLINK_NOFOLLOW) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc//usr/etc/login.defs.d", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/run//usr/etc/login.defs.d", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc//usr/etc/login.defs.d", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory)

econf_readConfig() has expects different arguments than econf_readDirs,
just replacing the function name will not work.
Comment 2 Michael Vetter 2024-06-24 13:06:56 UTC
My bad! Let's drop the patch for now: SR#1183021
Comment 3 OBSbugzilla Bot 2024-06-24 13:45:01 UTC
This is an autogenerated message for OBS integration:
This bug (1226850) was mentioned in
https://build.opensuse.org/request/show/1183021 Factory / shadow