useradd: -U ignored when USERGROUPS_ENAB is no, accepted with -g
メンテナーはふだん 1 日以内に返信
関連するプルリクエストがすでにマージされています。
- #345 @jayhemnani9910 による — マージ済み
評価
調査の方向性
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
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
uutils/shadow のほかの issue
-
groupmod -U: members change in /etc/group but not in /etc/gshadow対応中かも @jayhemnani9910 が 1 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
uutils/shadow#362 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
groupadd -g and usermod -u accept 4294967295, the reserved (gid_t)-1 / (uid_t)-1対応中かも @jayhemnani9910 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
メンテナーはふだん 1 日以内に返信
-
usermod: -r/--remove is not accepted対応中かも @jayhemnani9910 が 1 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 62/100
uutils/shadow#365 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
bug dependencies kind:fix priority: P3 ready-for-agent
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
shep-pm/shep#1318 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 2 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
swc-project/swc-next#1165 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
Alive24/shea-symphony#574 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信