Sun Desktop Manager 1.0 管理指南

建立

建立新的空白設定檔。

語法

create [--name=<profile name>] [--scope=<user|host>] [--entity=<entity>] [--priority=<priority>]

--name=<profile name>:要建立的設定檔名稱。如果使用此名稱和此範圍的設定檔已存在於在此層上,則指令會發生錯誤並結束。若未指定,則指令會預設使用系列 (例如「NewProfile」、「NewProfile2」、「NewProfile3」...) 中第一個可用的設定檔名稱。

--scope=<user|host>:設定檔的範圍,可以是使用者或主機。若未指定,則指令會預設為使用者範圍。

--entity=<entity>:建立設定檔的元素。若未指定,則指令會預設為根組織或網域元素,視 --scope 選項而定。

--priority=<priority>:指定設定檔優先權的完全正整數。如果指定的優先權與此層中此範圍現有的設定檔優先權相同,則會忽略 priority 選項。若未指定,則建立的設定檔在此層中將有最高的優先權。


範例 3–2 建立新設定檔

% pgtool create --scope=host --name=NewHostProfile1

在網域根目錄中建立名為「NewHostProfile1」的新設定檔,其範圍為「主機」。