對於 以 使用者 root 登入 的教學文章 的 論壇政策 [論壇 - 自由軟體中文翻譯討論]
正在瀏覽:
1 名遊客
對於 以 使用者 root 登入 的教學文章 的 論壇政策 |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() 註冊日期:
2009/12/6 10:32 所屬群組:
已註冊使用者 等級: 71
HP : 1053 / 1756
![]() |
以下文章 摘錄自
ubuntuforums.org Forum policy on log-in-as-root tutorials Last edited by Elfy; March 21st, 2013 at 03:30 PM. 提供給 本論壇 網友 參考 本文章只是代表 ubuntuforums.org 的政策 不代表 Ubuntu 設計程式的政策 The staff's "policy" or stance on this is IMO misunderstood by forum users. 我的意見 本論壇管理人員在這方面的政策或立場 被 論壇使用者 不正確的理解 This policy exists due to the number of new users of Ubuntu on these forms. This is a "Forums policy" and should not be misconstrued as an "Ubuntu policy" or as the one and only method of system administration. 本政策之所以存在是爲了在本論壇爲數衆多的 Ubuntu 新使用者 這是一個 論壇的政策 所以不可以 被誤解爲 是 Ubuntu 的政策 或者 誤解爲 系統管理的唯一方法 The goal is to educate new users.[/color] 本政策的目標是爲了要教育新的使用者 Our "line in the sand" is with tutorials or posts that show people how to LOG IN to a graphical desktop (gnome, KDE, etc) as root. This is completely inappropriate and unnecessary. 我們是 以教導網友如何以 root 登入 圖形桌面 如 gnome, KDE, 等等的教學貼文 爲 (沙堆上的)底線 這是完全不適合而且沒有必要的 In terms of the root account, there are times when one needs to activate or set a root password. At such times setting a root password is acceptable. 提到 root 帳號 總會有 需要 啓動或設定 root 密碼 這樣的時機 設定 root 密碼 是可以 接受的 The primary consideration is simply that we have a large influx of new users on these forums. 主要的考慮是 單純 因爲 我們 對於 這個論壇的 新使用者 有很大的影響力 Please refer new users to the RootSudo wiki page. After reading the wiki page users will have gained the requisite knowledge and may decide for themselves how to manage their systems. This is the whole point of the policy, educate users and allow them to decide for themselves. 請引領新使用者到 RootSudo 網頁 閱讀該篇網頁後 使用者將可以得到充分的知識 他們自己能夠決定 如何管理他們的系統 教育使用者 然後 允許他們自己決定 是 整個 政策的重點 On the forums, however, in the past, before this "policy", all too often people would simply instruct new users to set a root password to "fix" their problems. This was done without explaining (not intended as an exhaustive list): 然而 在過去 在本論壇 在本政策出臺前 太多網友 只是簡單教導 新使用者 如何 設定 root 密碼 去 解決 他們的問題 但是 對於下面要點 卻沒有詳細解釋 (下面這份名單不是完整的全部 因爲可能還有一些類似情況 沒有列入) 1. The potential risks of setting a root PW. 設定 root 密碼 的 潛在危機 2. How to lock the root account. 如何鎖住 root 帳號 3. The nature of the problem and the preferred solution, ie linux permissions, fstab, etc. 問題的本質 以及 如 權限 fstab(開機掛載) 等等 比較妥善的解決方案 4. Setting a root PW can (or has in the past) caused new problems. 設定 root 密碼 可能或者曾經 帶來新的問題 Thus the intent of the policy is we prefer if people educate new users re: permissions, etc, etc, rather then simply instruct them to set a root pw. 因此 我們政策的要旨是 我們寧願希望 網友 教育 新使用者 有關於 權限等等的東西 而不是 只是簡單 教導他們去 設定他們的 root 密碼 The preferred method of obtaining a root shell is : 要獲得 root 界面 首選的方法 如下: Code: 指令碼 sudo -i See : This post by unutbu for details. 詳細參閱 這個作者 的 這一篇 The preferred method of running graphical applications is gksu or kdesu. This is because, traditionally, gksu / kdesu, in addition to allowing root access, addresses the additional X (graphical) security better then su / sudo. For instance - to run the default file managers as default 執行圖形應用程式的首選方法是 gksu 或 kdesu 這是因爲 傳統上 gksu / kdesu 除了 允許 root 存取 以外 gksu / kdesu 還能夠 比 su / sudo 對於 X (graphical) security 能夠 額外處理得更好 例如 要預設 去執行 作業系統 預設的 檔案管理系統 (nautilus) Unity / Gnome : Code: 指令碼 gksu nautilus Xubuntu : Code: 指令碼 gksu thunar Lubuntu : Code: 指令碼 gksu pcmanfm For KDE use kdesu (with either konqueror or dolphin): 在 KDE 使用 kdesu (搭配 konqueror 或 dolphin) Code: 指令碼 kdesu konqueror|dolphin If you wish to instruct people to set a root password please include, at a minimum, the nature of the problem at hand (permissions) and information on how to lock the root account again. 如果你希望教導網友 如何設定 root 密碼 請務必 至少 包含 目前面對的 權限有關的 問題本質 以及 如何 再次 關閉 root 帳號的 資訊 See also : http://live.gnome.org/gksu 額外參見 : http://live.gnome.org/gksu Additional discussion staff input is located here (this is a link to the "old" sticky by aysiu). 這裏 還有 早期的 討論材料 由 aysiu 維護
2013/5/24 17:44
|
||||||||||
![]() |
回覆: 對於 以 使用者 root 登入 的教學文章 的 論壇政策 |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
管理員
![]() ![]() 註冊日期:
2010/5/7 5:46 所屬群組:
已註冊使用者 討論區管理群 等級: 31
HP : 0 / 755
![]() |
我看不懂,也不知道你想說什麼。
但是,使用 sudo im-config 會爛掉的這種方式請你不要教。 不該用 sudo 執行的東西也請你不要教。
2013/5/24 17:56
|
||||||||||
![]() |
回覆: 對於 以 使用者 root 登入 的教學文章 的 論壇政策 |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() 註冊日期:
2009/12/6 10:32 所屬群組:
已註冊使用者 等級: 71
HP : 1053 / 1756
![]() |
使用 sudo im-config 會爛掉的這種方式請你不要教。 請 參閱 How To Configure Input Method with im-config If you wish to override system default, For user configuration, execute as: $ im-config For system wide default, execute as: $ sudo editor /etc/default/im-config or $ sudo im-config 資料來源 im-config / debian / README.Debian 不該用 sudo 執行的東西也請你不要教。 沒有具體舉證 無法回應 不過 可以請你參考 sudo 使用時機 sudo, sudoedit — execute a command as another user sudo allows a permitted user to execute a command as the superuser or another user, as specified by the security policy. 如果有需要 又合於 這樣的規定 當然可以使用
2013/5/24 18:37
|
||||||||||
![]() |
回覆: 對於 以 使用者 root 登入 的教學文章 的 論壇政策 |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
管理員
![]() ![]() 註冊日期:
2010/5/7 5:46 所屬群組:
已註冊使用者 討論區管理群 等級: 31
HP : 0 / 755
![]() |
poloshiao 寫到:使用 sudo im-config 會爛掉的這種方式請你不要教。 真是抱歉,我記成 im-config ,正確的應為 sudo ibus-setup ,作者就是polo您 我還有查到使用gksu 執行ibus-setup 這種邪道用法,需要我附連結嗎
2013/5/24 18:59
|
||||||||||
![]() |
回覆: 對於 以 使用者 root 登入 的教學文章 的 論壇政策 |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
管理員
![]() ![]() 註冊日期:
2011/3/11 6:32 所屬群組:
討論區管理群 等級: 44
HP : 216 / 1084
![]() |
nana 寫到: 如果沒有猜錯的話 sudo ibus-setup 應該還是有用途的 就是設定 root 自己的 ibus 設定值(當使用者以 root 身份登入桌面環境時使用) 事實上跟「全系統設定」一點關係都沒有 跟 im-config 的差異是 im-config 偵測到執行的使用者是 root 就改成變更全系統範圍的設定值,而非 root 自己的設定值 對各個命令以 root 跟非 root 身份執行情況下的效果差異是需要學習的, 不 是 每 個 命 令 只 要 跑 不 了 都 應 該 用 root(sudo) 試 試 看 才 是 問 題
2013/5/24 21:06
|
||||||||||
本篇發表文章以「創用CC BY 3.0 或更新之台灣地區版本」授權條款釋出,如何使用敬請參考
Creative Commons — 姓名標示 3.0 台灣 — CC BY 3.0 TW http://creativecommons.org/licenses/by/3.0/tw/ 「你不懂的東西就不要亂講,被懂得人看破手腳就算了,騙不懂的人誤導別人,還要別人把你當成大師,這就真的是說不過去了。」 by Allen Own 出處 http://www.plurk.com/p/i4uogm 自由知識創作平台介紹 https://docs.google.com/document/d/1MGG6lW_0qCgH4U785R-IwSc_INdoBGej1l-JxiA4gPE 如何建立新的自由知識創作平台文件 https://docs.google.com/document/d/11NdzOW2lGYksfyQIcPMPye5tlmj1J0QTkgPTmQvIvKA |
|||||||||||
![]() |
回覆: 對於 以 使用者 root 登入 的教學文章 的 論壇政策 |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() 註冊日期:
2009/12/6 10:32 所屬群組:
已註冊使用者 等級: 71
HP : 1053 / 1756
![]() |
不 是 每 個 命 令 只 要 跑 不 了 都 應 該 用 root(sudo) 試 試 看 才 是 問 題 這不是 我的理解 我的理解是 當 登入的使用者 需要使用 root 權限時 使用 sudo
2013/5/24 21:16
|
||||||||||
![]() |
回覆: 對於 以 使用者 root 登入 的教學文章 的 論壇政策 |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() 註冊日期:
2009/12/6 10:32 所屬群組:
已註冊使用者 等級: 71
HP : 1053 / 1756
![]() |
我還有查到使用gksu 執行ibus-setup 這種邪道用法 sudo ibus-setup 應該還是有用途的 因爲 ibus-setup 基於 gtk 一般使用者登入 要使用 sudo 時 需要使用 gksudo 所以使用 gksudo ibus-setup 來取代 sudo ibus-setup 而 gksu ibus-setup 使用在 取代 su ibus-setup 時機 參考 1. ibus gtk 2. gksu - GTK+ frontend for su and sudo 3. 設定 ibus 繁體中文輸入法框架 如果你還沒見過的東西 不能說 那個就是 不存在 那個就是 邪道用法 更不能 以你自己的想法 推測 別人 也一定這樣想 這個世界之可愛 就是每個人想法不同 所以五彩繽紛
2013/5/24 21:35
|
||||||||||
![]() |
回覆: 對於 以 使用者 root 登入 的教學文章 的 論壇政策 |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
管理員
![]() ![]() 註冊日期:
2011/3/11 6:32 所屬群組:
討論區管理群 等級: 44
HP : 216 / 1084
![]() |
poloshiao 寫到: 想太多 gksudo/kdesudo 都是 sudo 的圖形化介面前端程式 沒有所謂的 XX 基於 Gtk/Qt 所以只能用 gk/kdesudo 的用法 gksudo 跟 sudo 的最大差異是 .Xauthority 跟 HOME 環境變數是否有適當的作處理 只要處理得當用什麼方式執行程式都不會發生問題 poloshiao 寫到: 以 root 身份執行根本是多餘的 GNOME 語言支援使用 polkit 可以直接修改全系統範圍的語系設定 poloshiao 寫到: 既然用 root 身份登入桌面環境已經不建議了那就更沒必要以 root 身份執行 ibus 設定程式 poloshiao 寫到: 很明顯是本文主旨的錯誤使用方式,有機會造成 sudoer ibus 設定不能
2013/5/24 21:57
|
||||||||||
本篇發表文章以「創用CC BY 3.0 或更新之台灣地區版本」授權條款釋出,如何使用敬請參考
Creative Commons — 姓名標示 3.0 台灣 — CC BY 3.0 TW http://creativecommons.org/licenses/by/3.0/tw/ 「你不懂的東西就不要亂講,被懂得人看破手腳就算了,騙不懂的人誤導別人,還要別人把你當成大師,這就真的是說不過去了。」 by Allen Own 出處 http://www.plurk.com/p/i4uogm 自由知識創作平台介紹 https://docs.google.com/document/d/1MGG6lW_0qCgH4U785R-IwSc_INdoBGej1l-JxiA4gPE 如何建立新的自由知識創作平台文件 https://docs.google.com/document/d/11NdzOW2lGYksfyQIcPMPye5tlmj1J0QTkgPTmQvIvKA |
|||||||||||
![]() |
回覆: 對於 以 使用者 root 登入 的教學文章 的 論壇政策 |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() 註冊日期:
2009/12/6 10:32 所屬群組:
已註冊使用者 等級: 71
HP : 1053 / 1756
![]() |
想太多 你一定忘了 說過這樣的話 回覆: Bodhi Linux #82 poloshiao 寫到: 建議你 詳細參閱 gksu - GTK+ frontend for su and sudo 使用別人寫的程式 當然要參考人家的 manpage 或 使用說明書 不要用 自己的認爲這樣 就來推論
2013/5/24 22:06
|
||||||||||
![]() |
回覆: 對於 以 使用者 root 登入 的教學文章 的 論壇政策 |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
管理員
![]() ![]() 註冊日期:
2012/1/14 18:41 所屬群組:
討論區管理群 等級: 20
HP : 0 / 480
![]() |
從root身份登入應該算是使用windows太久的習慣了,windows的取的最高全線設計的不是很好,導致大家幾乎都使用最高權限,自然就習慣了XDDD
2013/5/24 22:09
|
||||||||||
![]() |
您可以查看帖子.
您不可發帖.
您不可回覆.
您不可編輯自己的帖子.
您不可刪除自己的帖子.
您不可發起投票調查.
您不可在投票調查中投票.
您不可上傳附件.
您不可不經審核直接發帖.