How to install and use Nginx on CentOS 8

  1. Log in as the root user:
sudo su
  1. Create a new user:
useradd <username>
  1. Set the password for the new user:
passwd <username>
  1. Add the new user to the sudo group:
usermod -aG wheel <username>
  1. Verify that the user has been added to the sudo group:
grep wheel /etc/group
  1. Log out and log in as the new user to verify that you can use the sudo command.

Note: The above commands are for CentOS 8, for other version of Linux the commands may slightly vary.

Leave a Comment