1. 程式人生 > >Linux/Unix 中 wheel 組的來源

Linux/Unix 中 wheel 組的來源

使用過 Linux/Unix 的朋友應該知道,將使用者新增都 wheel使用者組,讓使用者可以通過在命令在前加 sudo 臨時獲取 root 使用者的許可權。但是有沒有朋友會想知道為何這個使用者組要交 wheel使用者組,而不是叫 admin 使用者組呢? 在 freebsd 的網站中找到這樣一篇文章More trivia: origin of the wheel group

The guy who wrote the group functionality was both a buddhist and a Journey fan. He was listening to "Wheel in the Sky" while trying to figure out a way to give more people administrative rights without giving too much access. In a fit of enlightment, he came up with a special group for administrators. Since they were the ones who kept things turning, it only seemed appropriate that "wheel" be immortalized in the /etc/group file. True story!

翻譯過來的意思是: 寫使用者組功能的人既是佛教徒,又是一位喜歡旅程的人。他正在聽《Wheel in the Sky》(貌似是一首歌)時,試圖讓更多的人享有權力,而不會給他們太多的訪問限制。在一陣啟發下,他想出了一個特別的管理員小組。因為是他們讓事情不斷髮生變化(看不懂這句講什麼,意思好像是由於執行命令要不停地切換賬號),所以 “wheel”使用者組 在 /etc/group 檔案中一直存在似乎是恰當的。真實的故事。 而在 jargon file (一份黑客俚語的彙總)中

[from slang ‘big wheel’ for a powerful person] A person who has an active wheel bit. “We need to find a wheel to unwedge the hung tape drives.” (See wedged, sense 1.) The traditional name of security group zero in BSD (to which the major system-internal users like root belong) is ‘wheel’. Some vendors have expanded on this usage, modifying Unix so that only members of group ‘wheel’ can go root.

意思為 : 【在俚語中,大輪子意為有能力的人】 比如 - 擁有主動輪子的人。 - 我們需要找到一個輪子解開掛起的磁帶機 在BSD中,安全組零的傳統名稱是 wheel(裡面的使用者像 root 那樣屬於主要的系統內部使用者)。一些供應商已經擴大了這種用法,修改了Unix,以便只有組'wheel'的成員才能使用 root 許可權。