Red Hat Linux create high privileged user

Table of Contents

  1. Purpose of document
  2. Create User and set password
  3. Grant high privilege access to user
    3.1. Process 1
    3.2. Process 2
  4. End of Document

Red Hat Linux create high privileged user

1. Purpose of document

Purpose of this document is to explain how to create user and provide high privilege (sudoers user) in Red Hat Linux.

2. Create User and set password

  • Login with user having root user privilege and create user “testuser1” and set password.
    • #useradd testuser1
    • #passwd testuser1
  • Login with user “testuser1” and execute high privileged command “sudo su” => Unable to execute

3. Grant high privilege access to user

3.1. Process 1

  • Login back with root privileged user and add user “testuser1” in group “wheel” => This will gives permission to run any command to user “testuser1”
    • #usermod testuser1 -G wheel
  • Re-login with user “testuser1”and execute high privileged command => Now able to execute.

3.2. Process 2

  • Login with user having root user privilege and create user “testuser2” and set password.
    • #useradd testuser2
    • #passwd testuser2
  • Login with user “testuser2” and execute high privileged command “sudo su” => Unable to execute
  • Add ”testuser2” entry in file “/etc/sudoers”
  • Re-login with user “testuser2”and execute high privileged command => Now able to execute.

4. End of Document

Facebook Comments

Leave a Reply

Your email address will not be published. Required fields are marked *