Bug 28981 - Anolis OS 8.8 基础镜像中 /etc/passwd 定义了 unbound 用户(DNS 解析器服务账户),但其对应的家目录 /etc/unbound 不存在。这是系统用户配置与文件系统不一致的问题。CentOS 8 基础镜像中要么没有预置该用户,要么用户和目录配置一致。
Summary: Anolis OS 8.8 基础镜像中 /etc/passwd 定义了 unbound 用户(DNS 解析器服务账户),但其对应的家目录 /etc/unb...
Status: NEW
Alias: None
Product: Anolis OS 8
Classification: Anolis OS
Component: BaseOS Packages (show other bugs) BaseOS Packages
Version: 8.8
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: Jacob
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-12-29 21:02 UTC by djjjjj
Modified: 2025-12-29 21:02 UTC (History)
0 users

See Also:


Attachments
用于复现问题的 Dockerfile (1.84 KB, application/octet-stream)
2025-12-29 21:02 UTC, djjjjj
Details

Note You need to log in before you can comment on or make changes to this bug.
Description djjjjj 2025-12-29 21:02:57 UTC
Created attachment 1454 [details]
用于复现问题的 Dockerfile

Description of problem:
Anolis OS 8.8 基础镜像中定义了 unbound 系统用户,但其家目录 /etc/unbound 不存在,导致执行 pwck -r 命令时报告验证错误。CentOS 8 执行相同命令验证完全通过。

Version-Release number of selected component (if applicable):
unbound 或 setup(Anolis OS 8.8 基础镜像默认版本)

How reproducible:
每次必现

Steps to Reproduce:
在 Anolis OS 8.8 系统中执行 pwck -r
在 CentOS 8 系统中执行 pwck -r
对比两个系统的输出结果

Actual results:
Anolis OS 8.8 输出验证失败信息:
user 'unbound': directory '/etc/unbound' does not exist
pwck: no changes
Expected results:
验证应完全通过,无任何输出,与 CentOS 8 行为一致

Additional info:
unbound 是 DNS 解析器服务,通常需要专用系统用户运行。如果基础镜像预置了该用户,应同时创建对应的家目录;或者不预置该用户,待安装 unbound 包时再创建。建议检查基础镜像构建流程,确保系统用户与其家目录配置一致,以保持与 CentOS 8 的兼容性并通过系统完整性检查。