Bug 28989 - anolisos8的unbound用户预置但家目录/etc/unbound不存在
Summary: anolisos8的unbound用户预置但家目录/etc/unbound不存在
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-30 08:40 UTC by djjjjj
Modified: 2025-12-30 08:40 UTC (History)
0 users

See Also:


Attachments
用于复现问题的 Dockerfile (6.09 KB, text/plain)
2025-12-30 08:40 UTC, djjjjj
Details

Note You need to log in before you can comment on or make changes to this bug.
Description djjjjj 2025-12-30 08:40:00 UTC
Created attachment 1457 [details]
用于复现问题的 Dockerfile

Description of problem:
Anolis OS 8.8系统在未安装unbound包的情况下,/etc/passwd中已预置了unbound用户,但其家目录/etc/unbound不存在,导致用户定义与文件系统状态不一致。

Version-Release number of selected component (if applicable):
setup-2.12.2-6.an8.noarch(请根据实际安装版本确认)

How reproducible:
每次必现

Steps to Reproduce:
安装Anolis OS 8.8系统,不安装unbound包
执行 grep unbound /etc/passwd 查看用户是否存在
执行 ls -la /etc/unbound 查看目录是否存在

Actual results:
用户存在:unbound:x:998:996:Unbound DNS resolver:/etc/unbound:/sbin/nologin
目录不存在:ls: cannot access '/etc/unbound': No such file or directory

Expected results:
方案一:未安装unbound包时不应预置unbound用户(与CentOS 8行为一致)
方案二:如需预置unbound用户,应同时创建对应的家目录/etc/unbound
Additional info:
对比测试发现CentOS 8在未安装unbound包时既无unbound用户也无/etc/unbound目录,安装unbound包后才同时创建用户和目录。Anolis OS 8.8的当前行为与CentOS 8不兼容,可能影响依赖用户家目录存在性检查的脚本或服务。