Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

pwck: warnings and "no changes" on clean files, nothing after problems

Đang mở
#364 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@jayhemnani9910 đang làm issue này rồi.

Từ ngày 27/10/2026.

  • #366 của @jayhemnani9910 — đang mở

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
54/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
cli

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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).

Ngôn ngữ chính
Rust
Star
17
Fork
10
Merge trung bình
18 giờ 30 phút
Pull request đã merge (30 ngày)
24

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của uutils/shadow

Tất cả issue của uutils/shadow

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.