Bug 1226850

Summary: Useradd doesn't create a group under the same name despite not using the -N flag
Product: [openSUSE] openSUSE Tumbleweed Reporter: Alice Brooks <alice.brooks>
Component: BasesystemAssignee: Michael Vetter <mvetter>
Status: IN_PROGRESS --- QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None CC: alice.brooks, kukuk, schubi
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

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