fedora-cloud / docker-brew-fedora

MIT License
176 stars 46 forks source link

useradd behavior changed #80

Closed BoleynSu closed 3 years ago

BoleynSu commented 3 years ago

After useradd -r user, user's uid used to be 999 but is 995 now.

cverna commented 3 years ago

@BoleynSu which Fedora version are you using ?

It seems that it is behaving as expected in Fedora 33

 [cverna@localhost]  $ podman run -it --rm docker.io/library/fedora:33
[root@9d6e67a1179e /]# useradd -r user
[root@9d6e67a1179e /]# cat /etc/group
root:x:0:
....
user:x:999:

which is not the case in Fedora 32

podman run -it --rm docker.io/library/fedora:32
[root@5984a3ac9f5b /]# useradd -r user
[root@5984a3ac9f5b /]# cat /etc/group
root:x:0:
....
input:x:999:
....
user:x:995:

in the Fedora 32 image we have an 'input' user that has the uid 999, this might be related to having systemd in the image compared to the Fedora 33 image that does not have systemd.

Could you use Fedora 33 ?

BoleynSu commented 3 years ago
-FROM fedora@sha256:d6a6d60fda1b22b6d5fe3c3b2abe2554b60432b7b215adc11a2b5fae16f50188
+FROM fedora@sha256:93b99d8dbb27450b6848d17669cce2bfe871bcd7534fc3a2bb8bd83c0f026ba1

This is the change that changed the useradd behavior.

I checked that f33 works, however, it would be great if f32 can be fixed.

BoleynSu commented 3 years ago

Already fixed in new releases.