3.7. Using an IPA command to add a user account to IdM


The following procedure describes how to add a new user to the Identity Management (IdM) database using the command line.

Prerequisites

  • You have administrator privileges.

Procedure

  1. Open a terminal and connect to the IdM server.
  2. Enter the command for adding a new user:

    $ ipa user-add

    The command runs a script that prompts you to provide basic data necessary for creating a user account.

  3. In the First name: field, enter the first name of the new user and press the Enter key.
  4. In the Last name: field, enter the last name of the new user and press the Enter key.
  5. In the User login [suggested user name]: enter the user name, or just press the Enter key to accept the suggested user name.

    The user name must be unique for the whole IdM database. If an error occurs because that user name already exists, repeat the process with the ipa user-add command and use a different, unique user name.

    After you add the user name, the user account is added to the IdM database and the IPA command-line interface (CLI) prints the following output:

    ----------------------
    Added user "euser"
    ----------------------
    User login: euser
    First name: Example
    Last name: User
    Full name: Example User
    Display name: Example User
    Initials: EU
    Home directory: /home/euser
    GECOS: Example User
    Login shell: /bin/sh
    Principal name: euser@IDM.EXAMPLE.COM
    Principal alias: euser@IDM.EXAMPLE.COM
    Email address: euser@idm.example.com
    UID: 427200006
    GID: 427200006
    Password: False
    Member of groups: ipausers
    Kerberos keys available: False
    참고

    By default, a user password is not set for the user account. To add a password while creating a user account, use the ipa user-add command with the following syntax:

    $ ipa user-add --first=Example --last=User --password

    The IPA CLI then prompts you to add or confirm a user name and password.

    If the user has been created already, you can add the password with the ipa user-mod command.

Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다. 최신 업데이트를 확인하세요.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

Theme

© 2026 Red Hat
맨 위로 이동