Creating a non-root user

Last Updated : Aug 28, 2024 |

About this task

You can create a non-root user in the RHEL instance to be the administrator user.

Note:

When there are multiple non-root users, RHEL considers the first user from ls /home as the administrator user.

Before you begin

Ensure to log in to the RHEL instance as an administrator user.

Procedure

  1. To create a non-root user, run the following commands:
    1. groupadd -g 4001 admingrp
    2. useradd -u 4001 -p avaya123 -g admingrp admin
  2. To set a password for the new non-root user, run the following command: passwd admin

    Enter and reenter the new password.