ERROR: You must not be logged in as root to run this tool.
Symptoms
During the installation of Oracle database software getting this error even when running through root user.
Cause
Oracle installation need to be run as a sudo user not with root user.
Solution
Create user with sudo permissions and install Oracle using that user.
In CentOS, use below commands to create a user with sudo permissions
adduser oginstall
passwd oginstall
usermod -aG wheel oginstall