Go to main content
Oracle® ZFS Storage Appliance 管理ガイド、Release OS8.6.x

印刷ビューの終了

更新: 2016 年 9 月
 
 

管理者またはユーザーの追加 (CLI)

管理者ロールとともに、または管理者ロールなしでユーザーを作成するには、次の手順を使用します。ユーザータイプの説明については、ユーザーとロールについてを参照してください。

  1. configuration users に移動します。
    hostname:> configuration users
    
  2. 次のいずれかのユーザータイプに続いて名前を入力します。

    directory- ディレクトリユーザー (NIS、LDAP) の場合。

    local - ローカルユーザーの場合。

    data- データ専用ユーザーの場合。

    nologin- 非ログインユーザーの場合。

  3. 設定する必要があるプロパティーを一覧表示するには、get と入力します。
    hostname:configuration users john (uncommitted)> get
                           logname = john
                               uid = (unset)
                          fullname = (unset)
                  initial_password = (unset)
                require_annotation = false
    
  4. set、設定するプロパティー、その後に commit を入力します。
    hostname:configuration users john (uncommitted)> set initial_password=password
                  initial_password = ******** (uncommitted)
    hostname:configuration users john (uncommitted)> commit
    

    この時点で、ユーザーは作成されていますが、すべてのプロパティーがカスタマイズされているとは限りません。

  5. (オプション) ローカルユーザーまたはディレクトリユーザーのロールを追加するには、select とユーザー名を入力します。
  6. (オプション) show と入力すると、プリファレンスの完全な一覧が表示されます。

    これで、ユーザーのロールおよび承認の例外を追加できます。

使用例 2  ローカルユーザーの作成
hostname:configuration users > local john
hostname:configuration users john (uncommitted) > get
                       logname = john
                           uid = (unset)
                      fullname = (unset)
              initial_password = (unset)
            require_annotation = false
hostname:configuration users john (uncommitted) > set initial_password=password
              initial_password = ******** (uncommitted)
hostname:configuration users john (uncommitted) > commit
hostname:configuration users > select john
hostname:configuration users john > show
Properties:
                       logname = john
                          type = local
                           uid = 
                      fullname = 
              initial_password = *************
            require_annotation = false
                         roles = 
                    kiosk_mode = false
                  kiosk_screen = status/dashboard

Children:
                       exceptions => Configure this user's exceptions
                      preferences => Configure user preferences

hostname:configuration users john > set roles=
basic       basic2      test_role1  test_role2
hostname:configuration users john > set roles=basic
                         roles = basic (uncommitted)
hostname:configuration users john > commit
hostname:configuration users > select john
hostname:configuration users john > show
Properties:
                       logname = john
                          type = local
                           uid = 
                      fullname = 
              initial_password = *************
            require_annotation = false
                         roles = basic
                    kiosk_mode = false
                  kiosk_screen = status/dashboard

Children:
                       exceptions => Configure this user's exceptions
                      preferences => Configure user preferences

関連トピック