useradd, groupadd: system IDs allocated from the bottom of the range
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 30/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Estancado
- Stack tecnológico
- linux, rust
- Área
- backend, operating-systems
Línea de trabajo
Read the useradd -r and groupadd -r ID allocation paths and compare their system ID behavior with the regular account allocation rule added in #263. Reproduce the listed command sequences, including the explicit UID and deletion cases, and check how the allocation handles occupied IDs and gaps. Done means system IDs follow the GNU ordering described in the issue; pull request #344 is already open.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
useradd -r and groupadd -r hand out the lowest free ID in SYS_UID_MIN..SYS_UID_MAX. GNU shadow 4.17.4 (Ubuntu 26.04) counts down from the top:
# useradd -r a; useradd -r b; id -u a b
GNU: 999 998
shadow-rs: 101 102
# groupadd -r ga; getent group ga
GNU: ga:x:999:
shadow-rs: ga:x:101:
GNU goes one below the lowest system ID already in use (after useradd -r -u 500 x the next is 499, and after deleting the newest system user the next one still gets a fresh ID), and fills the highest gap once the bottom of the range is reached. Regular accounts already follow the matching rule upwards since #263 (one past the highest in use).
The same sequence of commands gives different IDs than on a GNU system.
shadow-rs main 2e1032a.
- Lenguaje dominante
- Rust
- Estrellas
- 17
- Forks
- 10
- Merge medio
- 15 h 14 min
- PR fusionados (30 d)
- 15
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de uutils/shadow
-
chfn, chsh: print a line on stderr after a successful changePosiblemente ocupada @jayhemnani9910 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 1 día
-
passwd: -l, -u, -d, -e and the aging options print a different message than GNU passwdPosiblemente ocupada @jayhemnani9910 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Los mantenedores suelen responder en 1 día
-
chage: -i/--iso8601 is not acceptedPosiblemente ocupada @jayhemnani9910 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 70/100
Los mantenedores suelen responder en 1 día
Todos los issues de uutils/shadow
Issues similares
-
nn::linear: weight initialization depends on `bias` because the bias is created before the weightPosiblemente ocupada @monfortema la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
LaurentMazare/tch-rs#1067 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
FavioVazquez/mollify#62 ·
-
C-enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
obi1kenobi/cargo-semver-checks#1785 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 61/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
fendouai/awesome-deepseek-harness#125 ·
Los mantenedores suelen responder en 4 días