Basic Operation2013/01/21 |
[1] | add IPA user |
[root@dlp ~]# ipa user-add cern --first=Cern --last=Science --password Password: # set 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] | lock or unlock IPA user |
[root@dlp ~]# ipa user-disable cern ---------------------------- Disabled user account "cern" ---------------------------- [root@dlp ~]# ipa user-enable cern --------------------------- Enabled user account "cern" --------------------------- |
[3] | Search IPA user |
[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] | Delete IPA user |
[root@dlp ~]# ipa user-del cern ------------------- Deleted user "cern" ------------------- |
[5] | Add IPA group |
[root@dlp ~]# ipa group-add --desc='Development Group' development ------------------------- Added group "development" ------------------------- Group name: development Description: Development Group GID: 1226800020 |
[6] | Add members in IPA group |
[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] | Add groups in IPA group |
[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] | Search IPA group |
[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] | Delete IPA group |
[root@dlp ~]# ipa group-del development ------------------------- Deleted group "development" ------------------------- |
Sponsored Link |