티스토리 뷰

IPA Server 사용자 관리의 기본 조작


1. FreeIPA 사용자 계정 추가


[root@cent7 ~]# ipa user-add cent --first=CentOS --last=Linux --password 

Password:

Enter Password again to verify:

-----------------

Added user "cent"

-----------------

  User login: cent

  First name: CentOS

  Last name: Linux

  Full name: CentOS Linux

  Display name: CentOS Linux

  Initials: CL

  Home directory: /home/cent

  GECOS field: CentOS Linux

  Login shell: /bin/bash

  Kerberos principal: cent@SRV.WORLD

  Email address: cent@srv.world

  UID: 1781800001

  GID: 1781800001

  Password: True

  Kerberos keys available: True


  

  

2. FreeIPA 사용자 계정의 잠금 / 잠금 해제


[root@cent7 ~]# ipa user-disable cent 

----------------------------

Disabled user account "cent"

----------------------------


[root@cent7 ~]# ipa user-enable cent 

---------------------------

Enabled user account "cent"

---------------------------




3. FreeIPA 사용자 계정 검색


[root@cent7 ~]# ipa user-find cent 

--------------

1 user matched

--------------

  User login: cent

  First name: CentOS

  Last name: Linux

  Home directory: /home/cent

  Login shell: /bin/bash

  Email address: cent@srv.world

  UID: 1781800001

  GID: 1781800001

  Account disabled: False

  Password: True

  Kerberos keys available: True

----------------------------

Number of entries returned 1

----------------------------


[root@cent7 ~]# ipa user-show --raw cent 

  uid: cent

  givenname: CentOS

  sn: Linux

  homedirectory: /home/cent

  loginshell: /bin/bash

  mail: cent@srv.world

  uidnumber: 1781800001

  gidnumber: 1781800001

  nsaccountlock: False

  has_password: True

  has_keytab: True


  

  

4. FreeIPA 사용자 계정 삭제


[root@cent7 ~]# ipa user-del cent 

-------------------

Deleted user "cent"

-------------------




5. FreeIPA 그룹 추가


[root@cent7 ~]# ipa group-add --desc='Development Group' development 

-------------------------

Added group "development"

-------------------------

  Group name: development

  Description: Development Group

  GID: 1781800006


  

  

6. FreeIPA 그룹에 멤버 추가


[root@cent7 ~]# 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@cent7 ~]# 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@cent7 ~]# 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@cent7 ~]# ipa group-del hiroshima 

-------------------------

Deleted group "hiroshima"

-------------------------


※ download & Next Menu



저작자 표시 비영리 변경 금지
신고
댓글