大网数据广告活动
服务器运维问答

Difference between busybox system vs non-system users/groups?

· 52CE 我爱测

Regarding adduser -S and addgroup -S described at https://busybox.net/downloads/BusyBox.html What is the difference between creating a 'system user' and a non-system user? I cannot find additional information about this configura…

问题原文

原帖链接 · John K · CC BY-SA 3.0

Regarding adduser -S and addgroup -S described at https://busybox.net/downloads/BusyBox.html

What is the difference between creating a 'system user' and a non-system user? I cannot find additional information about this configuration. When might I choose to create a system user over a non-system user?

I see the same option applies to creating user groups.

I can look at regular Linux man pages like https://www.systutorials.com/docs/linux/man/8-useradd/ to get the concept, but I'm still unsure if the busybox implementation is exactly the same, or if there is additional busybox information available that I should be aware of when using the command. For example, the parameter names differ in the busybox implementation vs standard man page link provided in this question, which gives me pause.

已采纳解答

原帖链接 · HBruijn · CC BY-SA 3.0

AFAIK a system user gets a UID number with a value in the reserved range (100-500) rather then the first available UID number for regular accounts.

The Linux Standard Base Core Specification specifies that UID values in the range 0 to 99 should be statically allocated by the system, and shall not be created by applications, while UIDs from 100 to 499 should be reserved for dynamic allocation by system administrators and post install scripts.

The actual ranges for both system user UID numbers as well as those for "regular" users are defined in /etc/login.defs

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-03-16)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。