基本操作2013/01/21 |
[1] | IPAユーザー追加 |
[root@dlp ~]# ipa user-add cern --first=Cern --last=Science --password Password: # パスワード設定 Enter Password again to verify: ----------------- Added user "cern" ----------------- User login: cern First name: Cern Last name: Science Full name: Cern Science Display name: Cern Science Initials: CS Home directory: /home/cern GECOS field: Cern Science Login shell: /bin/bash Kerberos principal: cern@SRV.WORLD Email address: cern@srv.world UID: 1226800019 GID: 1226800019 Password: True Member of groups: ipausers Kerberos keys available: True |
[2] | IPAユーザーアカウントのロック/アンロック |
[root@dlp ~]# ipa user-disable cern ---------------------------- Disabled user account "cern" ---------------------------- [root@dlp ~]# ipa user-enable cern --------------------------- Enabled user account "cern" --------------------------- |
[3] | IPAユーザーアカウント検索 |
[root@dlp ~]# ipa user-find cern -------------- 1 user matched -------------- User login: cern First name: Cern Last name: Science Home directory: /home/cern Login shell: /bin/bash Email address: cern@srv.world UID: 1226800019 GID: 1226800019 Account disabled: False Password: True Kerberos keys available: True ---------------------------- Number of entries returned 1 ----------------------------[root@dlp ~]# ipa user-show --raw cern uid: cern givenname: Cern sn: Science homedirectory: /home/cern loginshell: /bin/bash mail: cern@srv.world uidnumber: 1226800019 gidnumber: 1226800019 nsaccountlock: False has_password: True has_keytab: True |
[4] | IPAユーザーアカウント削除 |
[root@dlp ~]# ipa user-del cern ------------------- Deleted user "cern" ------------------- |
[5] | IPAグループ追加 |
[root@dlp ~]# ipa group-add --desc='Development Group' development ------------------------- Added group "development" ------------------------- Group name: development Description: Development Group GID: 1226800020 |
[6] | IPAグループへメンバー追加 |
[root@dlp ~]# ipa group-add-member --users=cent,ubuntu development Group name: development Description: Development Group GID: 1226800020 Member users: cent, ubuntu ------------------------- Number of members added 2 ------------------------- |
[7] | IPAグループへグループを入れ子で追加 |
[root@dlp ~]# ipa group-add-member --groups=development hiroshima Group name: hiroshima Description: Hirosima Office GID: 1583800011 Member groups: development ------------------------- Number of members added 1 ------------------------- |
[8] | IPAグループ検索 |
[root@dlp ~]# ipa group-find development --------------- 1 group matched --------------- Group name: development Description: Development Group GID: 1226800020 Member users: cent, ubuntu ---------------------------- Number of entries returned 1 ---------------------------- |
[9] | IPAグループ削除 |
[root@dlp ~]# ipa group-del development ------------------------- Deleted group "development" ------------------------- |
Sponsored Link |
|