如何更改root password?

本區專門提供 Mac OS X 使用者交換使用心得

版主: ross_ttbryanchangdigdogchester

回覆文章
內容
發表人
頭像
bryanchang
討論區管理員
文章: 7057
註冊時間: 04/19/2001 1:01 am
來自: The '60s
聯繫:

如何更改root password?

#1 文章 bryanchang »

Mac OS X 光碟版的安裝程式應該有個功能可以讓你重設 Root Password。
頭像
janusng
嗜冰客
文章: 1048
註冊時間: 04/30/2001 1:01 am
來自: Metropolis Asylum
聯繫:

如何更改root password?

#2 文章 janusng »

多謝指教! [img]images/smiles/icon_smile.gif[/img]
還有其他辦法嗎?
chester
巨砲!冰果室 No. 1
文章: 2276
註冊時間: 04/19/2001 1:01 am
來自: /doc/elsewhere
聯繫:

如何更改root password?

#3 文章 chester »

<BLOCKQUOTE><font size="1" face="XYZ">quote:</font><HR>原始發信人 真理士:
<STRONG>多謝指教! [img]images/smiles/icon_smile.gif[/img]
還有其他辦法嗎?</STRONG><HR></BLOCKQUOTE>

如果你自己是 Administrator, 可以如此這般:

1. 執行 NetInfo Manager
2. 選擇 Domain -> Security -> Authenticate
3. 在上方中間選擇 user -> root
4. 在下方空格中把 password 字串(亂碼) 改成星號(*)
5. 存檔

然後用 NetInfo Manager 重新啟用 root 帳號

Disclaimer: 不保證有效

Chester [img]images/smiles/icon_biggrin.gif[/img]
頭像
janusng
嗜冰客
文章: 1048
註冊時間: 04/30/2001 1:01 am
來自: Metropolis Asylum
聯繫:

如何更改root password?

#4 文章 janusng »

我忘記了root password,如何更改? [img]images/smiles/icon_confused.gif[/img]
頭像
謝孟叡
討論區管理員
文章: 960
註冊時間: 05/01/2001 1:01 am
來自: 邪教組織 #osxchat
聯繫:

如何更改root password?

#5 文章 謝孟叡 »

<BLOCKQUOTE><font size="1" face="XYZ">quote:</font><HR>原始發信人 真理士:
<STRONG>我忘記了root password,如何更改? [img]images/smiles/icon_confused.gif[/img]</STRONG><HR></BLOCKQUOTE>

If you are one of the administrator and your name is in /etc/sudoer file, you can use such command to re-assign your root password.

% sudo passwd root
password: <-- Enter your own password
Changing password for user root
New UNIX password:
Retype new UNIX password:
%
頭像
janusng
嗜冰客
文章: 1048
註冊時間: 04/30/2001 1:01 am
來自: Metropolis Asylum
聯繫:

如何更改root password?

#6 文章 janusng »

年兄,不行啊!

謝孟叡哥,謝謝! [img]images/smiles/icon_biggrin.gif[/img]
回覆文章