usermod: -g does not move home directory files to the new primary group
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 35/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
Start by comparing usermod -g with the existing -u home ownership handling; the issue says -u already changes ownership this way, but gives no file or test paths. Reproduce the shown case and check that only entries in the home directory owned by the previous primary group change group, including symlinks themselves. Confirm other groups, files outside the home directory, and combined -g and -d behavior remain unchanged; pull request #349 is already open.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
usermod(8), -g: "Any file from the user's home directory owned by the previous primary group the user was member of will be owned by this new group." shadow-rs changes the GID in /etc/passwd and leaves the files alone:
# useradd -m alice; groupadd dev
# touch /home/alice/f; chown root:alice /home/alice/f
# usermod -g dev alice
# stat -c '%n %U:%G' /home/alice /home/alice/.bashrc /home/alice/f
GNU: /home/alice alice:dev /home/alice/.bashrc alice:dev /home/alice/f root:dev
shadow-rs: /home/alice alice:alice /home/alice/.bashrc alice:alice /home/alice/f root:alice
GNU changes the group of every entry in the home directory that had the old primary group, whoever owns it, including symlinks themselves. Files in other groups, files outside the home directory, and -g together with -d keep their group. -u already re-owns the home directory this way.
GNU shadow 4.17.4 (Ubuntu 26.04). shadow-rs main 2e1032a.
- Lenguaje dominante
- Rust
- Estrellas
- 17
- Forks
- 10
- Merge medio
- 14 h 13 min
- PR fusionados (30 d)
- 14
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
-
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
-
usermod: -m/--move-home is not implementedPosiblemente ocupada @jayhemnani9910 la tomó hace 1 día. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
Los mantenedores suelen responder en 1 día
-
useradd, groupadd: system IDs allocated from the bottom of the rangePosiblemente ocupada @jayhemnani9910 la tomó hace 2 días. Abierto
Dificultad 4/5 1-2 días Aptitud para principiantes 30/100
Los mantenedores suelen responder en 1 día
-
Dependency DashboardAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 20/100
Los mantenedores suelen responder en 1 día
Todos los issues de uutils/shadow
Issues similares
-
Small glitchAbiertopriority: medium
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
storytold/photocraft#9538 ·
Los mantenedores suelen responder en 1 día
-
bug P2 rust
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
jscott3201/rusty-bacnet#2085 ·
Los mantenedores suelen responder en 1 día
-
area:tag area:tag---json---markdown--n bug factory:dogfood factory:triaged persona:scripter platform:linux-cloud priority:p3 type:bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
gitbutlerapp/grit#1940 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Inconsistent case in names for Windows installation packages compared to all other assetsPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoarea:ui bug in progress needs-triage
Dificultad 1/5 Menos de una hora Aptitud para principiantes 65/100
bherbruck/solvecraft#6769 · 2 comentarios ·