Sun Desktop Manager 1.0 管理指南

新增

指定設定檔給元素。

語法

add [--scope=<user|host>] [--entity=<entity>] <profile name> <target entity>

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

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

<profile name>:要指定給元素的設定檔名稱。若在該層中沒有設定檔,或有多個設定檔具有此名稱和此範圍,則指令會發生錯誤並結束。

<target entity>:指定設定檔的元素。


範例 3–1 為元素增加設定檔

% pgtool add UserProfile1 cn=Role1,o=staff,o=apoc

位在根組織中的設定檔「UserProfile1」已指定給元素「cn=Role1,o=staff,o=apoc」。