17.4. Configuring the root account and creating users


You can configure the root account and create users to access the system from the Installation Summary screen.

17.4.1. Configuring a root account

You can configure a root account during the installation process to log in to the administrator (also known as superuser or root) account for system administration tasks. These tasks include:

  • Installing and updating software packages
  • Changing system-wide configuration such as network and firewall settings, storage options
  • Adding or modifying users, groups and file permissions.

To gain root privileges for the installed systems, you can either use a root account or create a user account with administrative privileges (member of the wheel group). The root account is always created during the installation. Switch to the administrator account only when you need administrator access for tasks.

警告

The root account has complete control over the system. If unauthorized personnel gain access to the account, they can access or delete users' personal files.

Procedure

  1. From the Installation Summary window, select User Settings > Root Account. The Root Account window opens.

    By default, the Disable root account option is selected.

  2. To enable root account, select the Enable root account option.
  3. Type your password in the Root Password field.

    The root password is case-sensitive and must be at least eight characters long containing numbers, letters (upper and lower case) and symbols.

  4. Type the same password in the Confirm field.
  5. Optional: Select the Allow root SSH login with password option to enable SSH access (with password) to this system as the root user. By default the password-based SSH root access is disabled.
  6. Click Done to confirm your root password and return to the Installation Summary window.

    If you proceed with a weak password, you must click Done twice.

17.4.2. Creating a user account

Create a user account during RHEL installation to establish a non-root user for daily system operations from the Installation Summary window. It improves security by avoiding the use of the root account for regular tasks and provides proper user management from the start of system deployment.

+ NOTE: You should only use the root account to perform privileged tasks. Using the root account instead of a non-privileged user account to perform regular tasks can introduce a security risk.

Procedure

  1. On the Installation Summary window, select User Settings > User Creation. The Create User window opens.
  2. Type the user account name into the Full name field, for example: John Smith.
  3. Type the username into the User name field, for example: jsmith.

    The User name is used to log in from a command line; if you install a graphical environment, then your graphical login manager uses the Full name.

  4. The Add administrative privileges to this…​ option is selected by default. Deselect this option if you do not want to share administrative privileges to this account. By default, new users have administrative privileges to the system.

    An administrator user can use the sudo command to perform tasks that are only available to root by using the user password, instead of the root password. Though it is more convenient, it can also introduce a security risk.

  5. The Require a password to use this account option is selected by default. Disable it if you want to use this account without a password.

    If you give administrator privileges to a user, ensure the account is password protected. Never give a user administrator privileges without assigning a password to the account.

  6. Type a password into the Password field.
  7. Type the same password into the Confirm password field.
  8. Click Done to apply the changes and return to the Installation Summary window.

17.4.3. Editing advanced user settings

You can configure advanced user account settings during RHEL installation to customize home directories, user and group IDs, and group memberships. This provides fine-grained control over user account configuration and system security policies.

Procedure

  1. On the Create User window, click Advanced.
  2. Edit the details in the Home directory field, if required. The field is populated by default with /home/username .
  3. In the User and Groups IDs section you can:

    1. Select the Specify a user ID manually check box and use + or - to enter the required value.

      The default value is 1000. User IDs (UIDs) 0-999 are reserved by the system so they cannot be assigned to a user.

    2. Select the Specify a group ID manually check box and use + or - to enter the required value.

      The default group name is the same as the user name, and the default Group ID (GID) is 1000. GIDs 0-999 are reserved by the system so they cannot be assigned to a user group.

  4. Specify additional groups as a comma-separated list in the Group Membership field. Groups that do not already exist are created; you can specify custom GIDs for additional groups in parentheses. If you do not specify a custom GID for a new group, the new group receives a GID automatically.

    The user account created always has one default group membership (the user’s default group with an ID set in the Specify a group ID manually field).

  5. Click Save Changes to apply the updates and return to the Create User window.
Red Hat logoGithubredditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

Red Hat ドキュメントについて

Red Hat をお使いのお客様が、信頼できるコンテンツが含まれている製品やサービスを活用することで、イノベーションを行い、目標を達成できるようにします。 最新の更新を見る.

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

Theme

© 2026 Red Hat
トップに戻る