Oracle® VM Server for SPARC 3.3 管理ガイド

印刷ビューの終了

更新: 2015 年 10 月
 
 

役割を使用して 1 つのコンソールへのアクセスを制御する方法

  1. コンソールの承認チェックを有効にして、ドメインコンソールへのアクセスを制限します。
    primary# svccfg -s vntsd setprop vntsd/authorization = true
    primary# svcadm refresh vntsd
    primary# svcadm restart vntsd
  2. 単一のドメインに対する承認を承認記述データベースに追加します。

    承認名は、ドメインの名前から派生し、solaris.vntsd.console-domain の形式になります。

    solaris.vntsd.console-domain:::Access domain Console::
  3. ドメインのコンソールへのアクセスのみを許可する、新しい承認を持つ役割を作成します。
    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
  4. role-name 役割をユーザーに割り当てます。
    primary# usermod -R role-name username
使用例 2-4  1 つのドメインコンソールへのアクセス

この例は、ユーザー terryldg1cons 役割になり、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 ..

次の例は、ユーザー terryldg2 ドメインコンソールにアクセスできないことを示しています。

$ telnet localhost 5001
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
Connection to 0 closed by foreign host.