usermod: -g does not move home directory files to the new primary group
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Ferma
- Stack tecnologico
- linux, rust
- Ambito
- backend, operating-systems
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Rust
- Stelle
- 17
- Fork
- 10
- Merge medio
- 14h 13m
- PR unite (30g)
- 14
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di uutils/shadow
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno
-
usermod: -m/--move-home is not implementedForse già presa @jayhemnani9910 l’ha presa 1 giorno fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
I maintainer di solito rispondono entro 1 giorno
-
useradd, groupadd: system IDs allocated from the bottom of the rangeForse già presa @jayhemnani9910 l’ha presa 2 giorni fa. Aperta
Difficoltà 4/5 1-2 giorni Idoneità per principianti 30/100
I maintainer di solito rispondono entro 1 giorno
-
Dependency DashboardAperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 20/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di uutils/shadow
Issue simili
-
api bug entity mobai
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
Pumpkin-MC/Pumpkin#4312 ·
I maintainer di solito rispondono entro 1 giorno
-
bug easy good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
lacs-project/sysknife#659 ·
I maintainer di solito rispondono entro 2 giorni
-
E_FIT_INPUT_MISSING (mixture overrides): the message says ferx-r bundles lack mixture_overridesApertaP3
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 83/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Document multi-value claims with rowBoundaries operator:in (and their per-record application)Apertadocumentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
registrystack/registry-stack#2431 ·
I maintainer di solito rispondono entro 1 giorno