Fedora 26
Sponsored Link

ユーザー管理の基本操作
2017/07/20
[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: RL
  Home directory: /home/fedora
  GECOS: fedora Linux
  Login shell: /bin/bash
  Principal name: fedora@SRV.WORLD
  Principal alias: fedora@SRV.WORLD
  Email address: fedora@srv.world
  UID: 858000001
  GID: 858000001
  Password: True
  Member of groups: ipausers
  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
  Principal name: fedora@SRV.WORLD
  Principal alias: fedora@SRV.WORLD
  Email address: fedora@srv.world
  UID: 858000001
  GID: 858000001
  Account disabled: False
----------------------------
Number of entries returned 1
----------------------------

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

  uid: fedora
  givenname: fedora
  sn: fedora
  homedirectory: /home/fedora
  loginshell: /bin/bash
  krbcanonicalname: fedora@SRV.WORLD
  krbprincipalname: fedora@SRV.WORLD
  mail: fedora@srv.world
  uidnumber: 858000003
  gidnumber: 858000003
  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