历史原因
Historical Reasons

原始链接: https://exple.tive.org/blarg/2025/11/11/historical-reasons-2/

2025年11月11日。2011年丹尼斯·里奇去世后,我曾想过是否应该在Unix系统中将用户名退役,以示尊敬,就像体育队退役伟大球员的号码一样。当时我曾向useradd.c提交过一个补丁,但被拒绝了;我想这可以理解,但我自己在我的机器上运行了修改后的版本一段时间,但没有效果,只是出于我自己的原因。那些几行代码可能运行了十几遍,检查着服务帐户的名字,这些帐户不会反对,但我知道它们在那里。我经常想知道将更深厚的文化历史融入到常用代码库的功能中会是什么样子,以及共同的遗产可能意味着什么,并且可能随着时间的推移获得什么。历史可能会无形地积累,不是在承重错误或临时永久性中,而是在人类历史的基准点中。你现在不能在NHL穿99号球衣,也不能在NBA穿6号球衣。也许你不应该能够以dmr的身份登录,原因相同。

## 黑客新闻讨论:保留用户名与用户身份 一场黑客新闻的讨论围绕着在类Unix系统中保留用户名(如“dmr”用于丹尼斯·里奇)的想法。最初的帖子质疑将此类限制硬编码到`useradd.c`中,建议使用可配置的文本文件代替。 评论者们大多不同意这个概念,理由是可能破坏现有系统,以及决定*谁*值得这种荣誉的不可行性。 提出的替代方案包括手动创建没有主目录的用户,或利用现有的系统工具,如修改`NAME_REGEX`。 对话扩展到关于用户身份本身的讨论。 几位用户认为Unix传统的用户名概念已经过时,建议借鉴Windows的SID等系统,或现代基于加密密钥的身份系统,如区块链技术。 他们设想一个用户通过加密密钥而不是用户名来识别的未来,从而提供更高的安全性和灵活性。 一个轶事强调了一位前亚马逊员工发现他们的历史UID(1)从系统中删除的沮丧。 总的来说,共识倾向于避免硬编码用户名限制,并重新思考现代计算中用户身份的基本概念。
相关文章

原文

November 11, 2025

Untitled

In 2011 after Dennis Ritchie died, I wondered if we should start retiring usernames on unix systems as an honorific, in the same way sports teams will retire the numbers of great players. I’d proposed a patch to useradd.c at the time that was rejected; understandable, I suppose, but I ran the modified version on my own machine for a while, to no effect and for no reasons but my own. Those few lines of code might have run a dozen times, inspecting the names of service accounts that they’d never object to, but I knew they were there.

I frequently wonder what building a deeper cultural history into the functioning of the common codebase would look like, and what a shared heritage might mean and maybe gain over time. How history might invisibly accrete, not in load-bearing bugs or temporary-permanence, but in the touchstones of the human history.

You can’t wear 99 in the NHL now, or 6 in the NBA. Maybe you shouldn’t be able to log in as dmr for the same reasons.

联系我们 contact @ memedata.com