Fedora 22
Sponsored Link

ユーザー管理の基本操作
2015/06/01
[1] FreeIPA ユーザーアカウント追加
[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: CL
  Home directory: /home/fedora
  GECOS field: Fedora Linux
  Login shell: /bin/bash
  Kerberos principal: fedora@SRV.WORLD
  Email address: fedora@srv.world
  UID: 1781800001
  GID: 1781800001
  Password: True
  Kerberos keys available: True
[2] FreeIPA ユーザーアカウントのロック/アンロック
[root@dlp ~]#
ipa user-disable fedora

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

---------------------------
Enabled user account "fedora"
---------------------------
[3] FreeIPA ユーザーアカウント検索
[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
  Email address: fedora@srv.world
  UID: 1781800001
  GID: 1781800001
  Account disabled: False
  Password: True
  Kerberos keys available: True
----------------------------
Number of entries returned 1
----------------------------

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

  uid: fedora
  givenname: Fedora
  sn: Linux
  homedirectory: /home/fedora
  loginshell: /bin/bash
  mail: fedora@srv.world
  uidnumber: 1781800001
  gidnumber: 1781800001
  nsaccountlock: False
  has_password: True
  has_keytab: True
[4] FreeIPA ユーザーアカウント削除
[root@dlp ~]#
ipa user-del fedora

-------------------
Deleted user "fedora"
-------------------
[5] FreeIPA グループ追加
[root@dlp ~]#
ipa group-add --desc='Development Group' development

-------------------------
Added group "development"
-------------------------
  Group name: development
  Description: Development Group
  GID: 1781800006
[6] FreeIPA グループへメンバー追加
[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] FreeIPA グループへグループを入れ子で追加
[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] FreeIPA グループ検索
[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] FreeIPA グループ削除
[root@dlp ~]#
ipa group-del hiroshima

-------------------------
Deleted group "hiroshima"
-------------------------
 
Tweet