系統管理員 (Root) 及 Sudo
前一頁
下一頁

系統管理員 (Root) 及 Sudo

The root user in Linux is the user which has administrative access to your system. Normal users do not have this access for security reasons. Kubuntu does not enable the root user. Instead, administrative access is given to individual users, who may use the "sudo" application to perform administrative tasks. The first user account you created on your system during installation will, by default, have access to sudo super user do. You can restrict and enable sudo access to users with the Users and Groups application (review the Keeping Safe documentation for more information).

當您執行一個需要 root 特權的應用程式時,sudo 會提示您輸入您的一般使用者的密碼,這樣可以確保程式不會損壞您的系統,還可提醒您,您要進行的是系統管理動作,一定要小心!

要在使用命令列時使用 sudo,只需在您希望執行的命令前加上 "sudo" 即可。 Sudo 會提示您輸入您的密碼。

Sudo 會在一段時間內記住您的密碼(預設是15分鐘),此功能使得使用者在執行多個系統管理的命令時,不用每次都要輸入密碼。

警告

Be careful when doing administrative tasks -- you could very well damage your system!

使用 sudo 的一些其他技巧:

手動以 Root 特權執行程式

有時您得以 root 的權限執行程式,您只需使用執行指令對話框即可。

警告

Be careful when doing administrative tasks -- you could very well damage your system!

  1. 要開啟執行指令對話框,請按:Alt+F2

  2. 依次輸入:kdesu 你想要執行的程式名,再按 Enter。比如,輸入

    kdesu konqueror

    就可以 root 特權執行檔案管理員 Konqueror

前一頁
下一頁
內容