基本操作2011/11/20 |
[1] | IPAユーザー追加 |
[root@master ~]# 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 Login shell: /bin/bash Kerberos principal: cern@SRV.WORLD UID: 1583800009 |
[2] | IPAユーザーアカウントのロック/アンロック |
[root@master ~]# ipa user-disable cern ---------------------------- Disabled user account "cern" ---------------------------- [root@master ~]# ipa user-enable cern --------------------------- Enabled user account "cern" --------------------------- |
[3] | IPAユーザーアカウント検索 |
[root@master ~]# ipa user-find cern -------------- 1 user matched -------------- User login: cern First name: Cern Last name: Science Home directory: /home/cern Login shell: /bin/bash Account disabled: False Member of groups: ipausers ---------------------------- Number of entries returned 1 ----------------------------[root@master ~]# ipa user-show --raw cern uid: cern givenname: Cern sn: Science homedirectory: /home/cern loginshell: /bin/bash nsaccountlock: False |
[4] | IPAユーザーアカウント削除 |
[root@master ~]# ipa user-del cern ------------------- Deleted user "cern" ------------------- |
[5] | IPAグループ追加 |
[root@master ~]# ipa group-add --desc='Development Group' development ------------------------- Added group "development" ------------------------- Group name: development Description: Development Group GID: 1583800010 |
[6] | IPAグループへメンバー追加 |
[root@master ~]# ipa group-add-member --users=fermi,ubuntu development Group name: development Description: Development Group GID: 1583800010 Member users: fermi, ubuntu ------------------------- Number of members added 2 ------------------------- |
[7] | IPAグループへグループを入れ子で追加 |
[root@master ~]# 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@master ~]# ipa group-find development --------------- 1 group matched --------------- Group name: development Description: Development Group GID: 1583800010 Member users: fermi, ubuntu ---------------------------- Number of entries returned 1 ---------------------------- |
[9] | IPAグループ削除 |
[root@master ~]# ipa group-del hiroshima ------------------------- Deleted group "hiroshima" ------------------------- |
Sponsored Link |