FreeBSD 上的一些用户名以下划线开头:
_dhcp:*:65:65:dhcp programs:/var/empty:/usr/sbin/nologin
Run Code Online (Sandbox Code Playgroud)
但其他人没有:
www:*:80:80:World Wide Web Owner:/nonexistent:/usr/sbin/nologin
Run Code Online (Sandbox Code Playgroud)
这个下划线有什么意义?它纯粹是历史性的还是有实际用途的?
在 FreeBSD端口/UID文件中可以看到更多示例。
可能有不止一种情况,但您指出的情况在 2008 年的邮件列表线程ISC DHCP 服务器端口 UID/GID 问题中进行了讨论,其中_dhcp已知用户是一个特殊帐户(具有与守护进程不同的特权) ):
I noticed that, but I believe that that is a privilege separation
account that is used with the OpenBSD-version of the dhclient. Also, as
I pointed out, if this is usable, then why isn't the isc-dhcp-server
port using it instead of allocating a UID/GID for itself during the install?
Erik
Florent Thoumie wrote:
> On Jan 18, 2008 12:01 PM, Erik Van Benschoten <evanben at valleycomnet.com> wrote:
>> Greetings,
>>
>> Is there a specific reason that the port of the ISC's DHCP server does
>> not seem to have/use a registered UID/GID?
>
> Maybe because there's already _dhcp user (uid 65) in base?
Run Code Online (Sandbox Code Playgroud)
检查我的 FreeBSD 10 机器,我看到另一个帐户,这个标记足够清楚:
_pflogd:*:64:64:pflogd privsep user:/var/empty:/usr/sbin/nologin
Run Code Online (Sandbox Code Playgroud)
进一步阅读:
- 如果用户 _dhcp 不存在,让 dhclient(8) 回退到用户 nobody。有助于升级。
- 用于 DHCP 程序的新 _dhcp 用户和组很有趣。
“用户/组 _pflogd:_pflogd” _ 有什么用?(freebsd-current 邮件列表,2004)
pf 未登录 5.3-BETA3 ?(freebsd-pf 邮件列表,2004)
好的,你们读过更新吗?
> 20040623:
> pf 更新到 OpenBSD-stable 3.5 并且 pflogd(8) 是特权
> 现在分开了。它使用新创建的“_pflogd”用户/组
> 组合。如果你打算使用 pflogd(8) 确保运行
> mergemaster -p 或手动安装“_pflogd”用户和组。
| 归档时间: |
|
| 查看次数: |
877 次 |
| 最近记录: |