Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

useradd: -U ignored when USERGROUPS_ENAB is no, accepted with -g

クローズ
#343 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

関連するプルリクエストがすでにマージされています。

  • #345 @jayhemnani9910 による — マージ済み

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
rust
領域
cli

調査の方向性

Start with the useradd(8) behavior described in the issue and trace how shadow-rs handles USERGROUPS_ENAB, -U, and -g. Compare both reported command cases with GNU shadow 4.17.4; done means explicit -U creates the user’s group despite the setting, and -U with -g is rejected. Pull request #345 is already open.

索引モデルが issue の本文から書いたものです。

説明

useradd(8) describes USERGROUPS_ENAB as the default for -U/-N. shadow-rs lets it override an explicit -U, and accepts -U together with -g:

# echo 'USERGROUPS_ENAB no' >> /etc/login.defs   (after removing the existing line)
# useradd -U u1; id u1
GNU:        uid=1001(u1) gid=1001(u1) groups=1001(u1)
shadow-rs:  uid=1001(u1) gid=100(users) groups=100(users)

# useradd -U -g users u2
GNU:        useradd: options -U and -g conflict   (exit 2)
shadow-rs:  exit 0, creates group u2 and makes it the primary group; -g is ignored

GNU shadow 4.17.4 (Ubuntu 26.04). shadow-rs main 2e1032a.

主要言語
Rust
スター
17
フォーク
10
平均マージ
19時間 18分
マージ済み PR(30日)
23

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

uutils/shadow のほかの issue

uutils/shadow の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。