FreeIPA : Basic Operation of User Management2018/11/27 |
[1] | Add a FreeIPA user account. |
root@dlp:~# ipa user-add bionic --first=Bionic --last=Beaver --password Password: Enter Password again to verify: ------------------- Added user "bionic" ------------------- User login: bionic First name: Bionic Last name: Beaver Full name: Bionic Beaver Display name: Bionic Beaver Initials: BB Home directory: /home/bionic GECOS: Bionic Beaver Login shell: /bin/bash Principal name: bionic@IPA.SRV.WORLD Principal alias: bionic@IPA.SRV.WORLD User password expiration: 20181126061530Z Email address: bionic@ipa.srv.world UID: 1389200005 GID: 1389200005 Password: True Member of groups: ipausers Kerberos keys available: True |
[2] | Lock or unlock a FreeIPA user. |
root@dlp:~# ipa user-disable bionic ---------------------------- Disabled user account "bionic" ---------------------------- root@dlp:~# ipa user-enable bionic --------------------------- Enabled user account "bionic" --------------------------- |
[3] | Search a FreeIPA user. |
root@dlp:~# ipa user-find bionic -------------- 1 user matched -------------- User login: bionic First name: Bionic Last name: Beaver Home directory: /home/bionic Login shell: /bin/bash Principal name: bionic@IPA.SRV.WORLD Principal alias: bionic@IPA.SRV.WORLD Email address: bionic@ipa.srv.world UID: 1389200005 GID: 1389200005 Account disabled: False ---------------------------- Number of entries returned 1 ----------------------------root@dlp:~# ipa user-show --raw bionic uid: bionic givenname: Bionic sn: Beaver homedirectory: /home/bionic loginshell: /bin/bash krbcanonicalname: bionic@IPA.SRV.WORLD krbprincipalname: bionic@IPA.SRV.WORLD mail: bionic@ipa.srv.world uidnumber: 1389200005 gidnumber: 1389200005 nsaccountlock: FALSE has_password: TRUE has_keytab: TRUE |
[4] | Delete a FreeIPA user. |
root@dlp:~# ipa user-del bionic ------------------- Deleted user "fedora" ------------------- |
[5] | Add a FreeIPA group. |
root@dlp:~# ipa group-add --desc='Development Group' development ------------------------- Added group "development" ------------------------- Group name: development Description: Development Group GID: 1389200006 |
[6] | Add members in a FreeIPA group. |
root@dlp:~# ipa group-add-member --users=redhat,ubuntu development Group name: development Description: Development Group GID: 1389200006 Member users: ubuntu ------------------------- Number of members added 1 ------------------------- |
[7] | Add a group in a FreeIPA group. |
root@dlp:~# ipa group-add-member --groups=development hiroshima Group name: hiroshima GID: 1389200007 Member groups: development Indirect Member users: ubuntu ------------------------- Number of members added 1 ------------------------- |
[8] | Search a FreeIPA group. |
root@dlp:~# ipa group-find development --------------- 1 group matched --------------- Group name: development Description: Development Group GID: 1389200006 ---------------------------- Number of entries returned 1 ---------------------------- |
[9] | Delete a FreeIPA group. |
root@dlp:~# ipa group-del hiroshima ------------------------- Deleted group "hiroshima" ------------------------- |
Sponsored Link |
|