安裝與管理 Solaris Container Manager 3.6.1

建立設定檔

在設定 Solaris Container Manager 之後,使用者必須執行下列作業才能管理專案、池和區域:

以下為必要的設定檔:

確認使用者已執行下列指令與必要設定檔建立關聯:

$ profiles <使用者名稱>

(在 Solaris 9 與 10)

請將以下指令行新增至 /etc/security/prof_attr 檔案。

Pool Management:::Resource pool management profile:help=RtPoolMgmt

若 Pool Management 設定檔目前不位於 /etc/security/prof_attr 檔案中,請新增以下指令行至 /etc/security/exec_attr 檔案。

Pool Management:suser:cmd:::/usr/sbin/pooladm:euid=0

Pool Management:suser:cmd:::/usr/sbin/poolcfg:euid=0

(在 Solaris 8)

請將以下指令行新增至 /etc/security/prof_attr 檔案。

Project Management:::Project management profile:help=RtPoolMgmt

若 Project Management 設定檔目前不位於 /etc/security/prof_attr 檔案中,請新增以下指令行至 /etc/security/exec_attr 檔案。

Project Management:suser:cmd:::/usr/sbin/projadd:euid=0

Project Management:suser:cmd:::/usr/sbin/projmod:euid=0

Project Management:suser:cmd:::/usr/sbin/projdel:euid=0

或者,您也可使用 Solaris Management Console 或 smprofile 來建立設定檔。

請執行下列指令以得知使用者是否位於 SCM 模組的本機使用者清單中。

<基底目錄>/SUNWsymon/sbin/es-config -M scm-container -s

若使用者不在存取清單中,請執行下列指令:

<基底目錄>/SUNWsymon/sbin/es-config -M scm-container -l <使用者名稱>