Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

usermod: -m/--move-home is not implemented

Aperta
#348 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@jayhemnani9910 ci sta già lavorando.

Dal 24/10/2026.

  • #350 di @jayhemnani9910 — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
rust

Direzione di ricerca

Read the usermod(8) behavior described in the issue and inspect the usermod implementation and its existing tests in the repository; no file or test path is named in the payload. Start by locating how -d and user ownership changes are handled. Done means -m works with -d, with the listed move, failure, and ownership behaviors covered by tests; pull request #350 is already open.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

usermod(8) documents -m, --move-home (with -d), and #242 listed it as missing; it still is. usermod -d NEW -m USER is what Ansible's user module runs for move_home: yes:

# useradd -m alice
# usermod -d /home/new -m alice
GNU:        exit 0, /home/alice moved to /home/new
shadow-rs:  error: unexpected argument '-m' found   (exit 2), nothing changed

GNU behaviour, checked as a black box (GNU shadow 4.17.4, Ubuntu 26.04):

  • same filesystem: rename; across filesystems: copy keeping owners, modes, times, hard links, symlinks and fifos, then the old tree is removed
  • /etc/passwd is updated first and stays updated if the move fails
  • new path exists: directory /home/new exists, exit 12; rename fails: cannot rename directory A to B, exit 12
  • old home missing: a warning, exit 0
  • -m without -d: usage error, exit 2
  • with -u/-g, the moved home is re-owned

shadow-rs main 2e1032a.

Lingua principale
Rust
Stelle
17
Fork
10
Merge medio
18h 30m
PR unite (30g)
24

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di uutils/shadow

Tutte le issue di uutils/shadow

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.