![“bin”组的目的是什么?](https://linux22.com/image/986374/%E2%80%9Cbin%E2%80%9D%E7%BB%84%E7%9A%84%E7%9B%AE%E7%9A%84%E6%98%AF%E4%BB%80%E4%B9%88%EF%BC%9F.png)
它通常用在什么地方?我在哪里可以阅读有关它和其他常用组的信息?
答案1
该base-passwd
软件包保证系统中存在某些用户和某些组。文档位于/usr/share/doc/base-passwd/users-and-groups.txt.gz
(或/usr/share/doc/base-passwd/users-and-groups.html
)(来源可在线访问Debian Salsa):
bin
HELP: No files on my system are owned by user or group bin. What good are
they? Historically they were probably the owners of binaries in /bin? It is
not mentioned in the FHS, Debian Policy, or the changelogs of base-passwd
or base-files.
LSB 1.3 lists bin as legacy, and says: "The 'bin' UID/GID is included for
compatibility with legacy applications. New applications should no longer
use the 'bin' UID/GID."
所以,这是最低有效位规范,并且由于 Debian 过去致力于实现 LSB 合规性,因此 Ubuntu 拥有一个bin
用户和组。
答案2
/usr
是历史悠久的 Unix 中用户主目录的原始路径,因此有一个bin
用户负责/usr/bin
- 比较一下这些系统(以及一些更现代的系统 - Solaris 等)中 root 用户的实现方式,它有/
,而不是/root
,作为主目录。