ad_728x90

參觀我的【 伊生活小舖】

2014年1月12日 星期日

Mac os x Root 開啟權限與帳號!事後應關閉以免駭客入侵


說明:
在Mac OS X 10.6預設已經把root帳號關閉,所以不須要做任何的變更,就有很好的安全性,但是Mac OS X 10.5與10.4以下的使用者,預設root帳號是開啓中,而且可以登入!  只要駭客可以想辦法猜到你的密碼,甚至是沒有設定密碼的話,很容易就用root帳號遠端登入到你的Mac主機! 因此建議Mac OS X 10.5與10.4的室友們,把root帳號關閉!

「開啟」實作:



先到「系統偏好設定」-->使用者與群組-->允許此使用者管理此電腦

確認好之後,開啟Terminal終端機

輸入下面語法

代碼:
sudo su
這時候他會要你輸入密碼,你就輸入你的密碼

如此一來你就會看到前端變成了

sh-3.2# 這樣的prompt 就表示你現在是root了

接著再來給root新增密碼

輸入

代碼:
passwd
輸入兩次root的新密碼


就完成囉


也就是說,當root有了密碼之後(在此之前沒有),root帳號就被開啟囉~


接下來你就可以用root來做高階的排程任務囉 !

-----------------------------------------------------------------------------------------------------------
以下爲錄自官方文件 : http://support.apple.com/kb/HT1528?viewlocale=zh_TW


在 Mac OS X 中啟用和使用「Root」使用者

預設是停用 Mac OS X 的 Root 使用者。必要時請遵循本文步驟以啟用和使用本功能。

重要事項:如果您不熟悉「Root 使用者」的意義,請在使用 Root 使用者功能之前閱讀整篇文章,了解重要的預防注意事項。您必須擁有管理者帳號與密碼才能完成下列步驟。
關於 Root 使用者

名為「Root」的使用者是 UNIX 型作業系統中的特殊使用者,擁有讀取和寫入檔案系統所有區域的權限。Root 使用者只應用於特定管理或監控工作。以 Root 使用者身分完成工作後,應登出 Mac OS X,並以一般或管員者帳號重新登入。如果不常使用,應停用 Root 存取權限。
Root 使用者不會出現在「使用者」或「帳號」偏好設定中。

重要附註
  • 只有電腦所有人或指定管理員才能有管理者帳號或 Root 密碼。
  • 任何有管理者帳號的使用者都能成為 Root 使用者或重置 Root 密碼。
  • Root 密碼應不易猜出,前八個字元應包含數字與字母。
  • Root 使用者可存取其他使用者的檔案。
  • Root 使用者可為所需的系統檔案重新指定位置或移除,以及將新檔案放置在受其他使用者保護的位置。


如何啟用 Root 使用者

OS X Lion(10.7)和以上版本

  1. 從 Apple 選單中選擇系統偏好設定...
  2. 顯示方式選單中選擇使用者與群組
  3. 按一下鎖頭圖案,以管理者帳號的身分進行認證。
  4. 按一下「登入選項...」。
  5. 按一下右下方的「編輯...」或「加入...」按鈕。
  6. 按一下「打開目錄工具程式...」按鈕。
  7. 按一下「目錄工具程式」視窗中的鎖頭。
  8. 輸入管理者帳號名稱和密碼,然後按一下「好」。
  9. 編輯選單中選擇啟用 Root 使用者
  10. 輸入您要在「密碼」與「驗證」欄位中使用的 Root 密碼,然後按一下「好」。

如何停用 Root 使用者

OS X Lion(10.7)和以上版本

  1. 從 Apple 選單中選擇系統偏好設定...
  2. 顯示方式選單中選擇使用者與群組
  3. 按一下鎖頭圖案,以管理者的帳號進行認證。
  4. 按一下「登入選項...」。
  5. 按一下右下方的「編輯...」或「加入...」按鈕
  6. 按一下打開目錄工具程式...按鈕。
  7. 按一下「目錄工具程式」視窗中的鎖頭。
  8. 輸入管理者帳號名稱和密碼,然後按一下「好」。
  9. 編輯選單中選擇停用 Root 使用者


How to enable the root user

OS X Lion
  1. From the Apple menu choose System Preferences....
  2. From the View menu choose Users & Groups.
  3. Click the lock and authenticate as an administrator account.
  4. Click Login Options....
  5. Click the "Edit..." or "Join..." button at the bottom right.
  6. Click the "Open Directory Utility..." button.
  7. Click the lock in the Directory Utility window.
  8. Enter an administrator account name and password, then click OK.
  9. Choose Enable Root User from the Edit menu.
  10. Enter the root password you wish to use in both the Password and Verify fields, then click OK.


How to enable the root user
Mac OS X v10.6 and later
    1.    From the Apple menu choose System Preferences....
    2.    From the View menu choose Accounts.
    3.    Click on the lock and authenticate with an administrator account.
    4.    Click Login Options....
    5.    Click the "Edit..." or "Join..." button at the bottom right.
    6.    Click the "Open Directory Utility..." button.
    7.    Click the lock in the Directory Utility window.
    8.    Enter an administrator account name and password, then click OK.
    9.    Choose Enable Root User from the Edit menu.
    10.    Enter the root password you wish to use in both the Password and Verify fields, then click OK.

How to disable the root user
Mac OS X v10.6 and later
    1.    From the Apple menu choose System Preferences....
    2.    From the View menu choose Accounts.
    3.    Click on the lock and authenticate with an administrator account.
    4.    Click Login Options....
    5.    Click the "Edit..." or "Join..." button at the bottom right
    6.    Click the "Open Directory Utility..." button.
    7.    Click the lock in the Directory Utility window.
    8.    Enter an administrator account name and password, then click OK.

    9.    Choose Disable Root User from the Edit menu.

COMMENTS HAVE BEEN DISABLED FOR THIS POST [文章的評論已被禁用]

Ratings and Recommendations by outbrain