Fedora 27
Sponsored Link

Basic Operation2017/12/25

[1] Add a FreeIPA user account.
[root@dlp ~]#
ipa user-add fedora --first=Fedora --last=Linux --password

Password:
Enter Password again to verify:
-------------------
Added user "fedora"
-------------------
  User login: fedora
  First name: Fedora
  Last name: Linux
  Full name: Fedora Linux
  Display name: Fedora Linux
  Initials: FL
  Home directory: /home/fedora
  GECOS: Fedora Linux
  Login shell: /bin/bash
  Principal name: fedora@IPA.SRV.WORLD
  Principal alias: fedora@IPA.SRV.WORLD
  User password expiration: 20171226013407Z
  Email address: fedora@ipa.srv.world
  UID: 590800001
  GID: 590800001
  Password: True
  Member of groups: ipausers
  Kerberos keys available: True
[2] Lock or unlock a FreeIPA user.
[root@dlp ~]#
ipa user-disable fedora

----------------------------
Disabled user account "fedora"
----------------------------
[root@dlp ~]#
ipa user-enable fedora

---------------------------
Enabled user account "fedora"
---------------------------
[3] Search a FreeIPA user.
[root@dlp ~]#
ipa user-find fedora

--------------
1 user matched
--------------
  User login: fedora
  First name: Fedora
  Last name: Linux
  Home directory: /home/fedora
  Login shell: /bin/bash
  Principal name: fedora@IPA.SRV.WORLD
  Principal alias: fedora@IPA.SRV.WORLD
  Email address: fedora@ipa.srv.world
  UID: 590800001
  GID: 590800001
  Account disabled: False
----------------------------
Number of entries returned 1
----------------------------

[root@dlp ~]#
ipa user-show --raw fedora

  uid: fedora
  givenname: Fedora
  sn: Linux
  homedirectory: /home/fedora
  loginshell: /bin/bash
  krbcanonicalname: fedora@IPA.SRV.WORLD
  krbprincipalname: fedora@IPA.SRV.WORLD
  mail: fedora@ipa.srv.world
  uidnumber: 590800001
  gidnumber: 590800001
  nsaccountlock: FALSE
  has_password: TRUE
  has_keytab: TRUE
[4] Delete a FreeIPA user.
[root@dlp ~]#
ipa user-del fedora

-------------------
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: 1781800006
[6] Add members in a FreeIPA group.
[root@dlp ~]#
ipa group-add-member --users=redhat,ubuntu development

  Group name: development
  Description: Development Group
  GID: 1781800006
  Member users: redhat, ubuntu
-------------------------
Number of members added 2
-------------------------
[7] Add a group in a FreeIPA group.
[root@dlp ~]#
ipa group-add-member --groups=development hiroshima

  Group name: hiroshima
  Description: State Group
  GID: 1781800007
  Member groups: development
-------------------------
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: 1781800006
  Member users: redhat, ubuntu
  Member of groups: hiroshima
----------------------------
Number of entries returned 1
----------------------------
[9] Delete a FreeIPA group.
[root@dlp ~]#
ipa group-del hiroshima

-------------------------
Deleted group "hiroshima"
-------------------------
Matched Content