2009年12月17日 星期四

Ubuntu 的 root 密碼

Ubuntu 的 root 不設 password ,原因是:令 root 不能登入系統。保安最重要

有關保安的問題,可參考這個連結,我摘錄要點如下:

0- 若要為 root 加密碼,可打入 sudo passwd root 設定密碼,但絕不建議。

因此,要取得 root 權限,可以採用以下的方法:

1- 在 terminal 打入 sudo su - 及輸入密碼。

  storylai@storylai-desktop:~$ sudo su -
  [sudo] password for storylai:
  root@storylai-desktop:~#

2- 在 terminal 打入 sudo -i 或 sudo -s ,直接變成 root ,毋須輸入密碼。

  storylai@storylai-desktop:~$ sudo -i
  root@storylai-desktop:~#
 
3- 在 terminal 打入 sudo nautilus 及輸入密碼,叫出超強的檔案總管(nautilus)。

4- 新增 root 終端機 (極不建議)

  4-1 系統->偏好設定->主選單....在系統工具的選單中裡把root終端機打勾後關閉。
  4-2 應用程式->系統工具->root終端機。

關於 sudo 的用法,可以在 terminal 打 man sudo ,又或參考以下網頁:
  http://zh.wikipedia.org/wiki/Sudo
  
  
  

沒有留言: