primary# svccfg -s vntsd setprop vntsd/authorization = true primary# svcadm refresh vntsd primary# svcadm restart vntsd
承認名は、ドメインの名前から派生し、solaris.vntsd.console-domain の形式になります。
solaris.vntsd.console-domain:::Access domain Console::
primary# roleadd -A solaris.vntsd.console-domain role-name primary# passwd role-name New Password: Re-enter new Password: passwd: password successfully changed for role-name
primary# usermod -R role-name username
この例は、ユーザー terry が ldg1cons 役割になり、ldg1 ドメインコンソールにアクセスする方法を示しています。
まず、単一のドメイン ldg1 に対する承認を承認記述データベースに追加します。
solaris.vntsd.console-ldg1:::Access ldg1 Console::
次に、ドメインのコンソールへのアクセスのみを許可する、新しい承認を持つ役割を作成します。
primary# roleadd -A solaris.vntsd.console-ldg1 ldg1cons primary# passwd ldg1cons New Password: Re-enter new Password: passwd: password successfully changed for ldg1cons
ldg1cons 役割をユーザー terry に割り当てて、ldg1cons 役割になり、ドメインコンソールにアクセスします。
primary# usermod -R ldg1cons terry primary# su terry Password: $ id uid=700300(terry) gid=1(other) $ su ldg1cons Password: $ id uid=700303(ldg1cons) gid=1(other) $ telnet localhost 5000 Trying 0.0.0.0... Escape character is '^]'. Connecting to console "ldg1" in group "ldg1" .... Press ~? for control options ..
次の例は、ユーザー terry が ldg2 ドメインコンソールにアクセスできないことを示しています。
$ telnet localhost 5001 Trying 0.0.0.0... Connected to 0. Escape character is '^]'. Connection to 0 closed by foreign host.