pwck: warnings and "no changes" on clean files, nothing after problems
维护者通常 1 天内回复
评估
调研方向
Start at the pwck command entry point and trace the checks that emit ID-range warnings and the logic that prints “no changes”; the issue does not name source files or tests. Compare pwck -r on clean files and files with a problem against the GNU behavior shown here. Done means clean files produce no warning or “no changes” line, while problematic files report the problem and print “no changes” to stdout, including with -q.
由索引模型根据 Issue 内容生成。
描述
On a stock Ubuntu 26.04 /etc where GNU pwck 4.17.4 prints nothing and exits 0, pwck -r prints:
pwck: warning: user 'sync': GID 65534 is outside the normal range (> 60000)
pwck: warning: user '_apt': GID 65534 is outside the normal range (> 60000)
pwck: warning: user 'nobody': UID 65534 is outside the normal range (> 60000)
pwck: warning: user 'nobody': GID 65534 is outside the normal range (> 60000)
pwck: no changes
65534 is nobody/nogroup on Debian and Ubuntu, and pwck(8) lists no ID range check; GNU pwck warns about none of these (also not for a user with UID 70000).
The "no changes" line is the other way round from GNU: GNU prints pwck: no changes on stdout after it has reported a problem (also with -q) and nothing on clean files. Here it goes to stderr on clean files, and is missing after problems:
# echo 'ghost:x:3000:3000::/:/bin/sh' >> /etc/passwd
# pwck -r GNU: ... "add user 'ghost' in /etc/shadow? No" / "pwck: no changes", exit 2
here: the problems, no "no changes", exit 2
Checked on main 7a84527 in ubuntu:26.04 (GNU passwd 1:4.17.4-2ubuntu3).
- 主要语言
- Rust
- 星标
- 17
- 派生
- 10
- 平均合并
- 19 小时 18 分钟
- 30 天内合并 PR
- 23
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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
维护者通常 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
维护者通常 1 天内回复
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
swc-project/swc-next#1165 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 73/100
Alive24/shea-symphony#574 ·
-
bug tests Windows
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
documentation good first issue help wanted
难度 2/5 1-3 小时 新手友好度 74/100
dev-five-git/devup-ui#879 ·
维护者通常 11 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 77/100
farion1231/cc-switch#9038 · 1 条评论 ·
维护者通常 1 天内回复