How to make normal user to become root user on centos?
When you installed CentOS you created a password for root. Root is a user. ...
When you installed CentOS you created a password for root. Root is a user. Root is the user that owns the OS and everything in it.
A regular user doesn't become root.
You can by using the root password work as root.
This is normally done in terminal so that you can perform administrative tasks by using the command;
You will be requested to give the password for root.
su stands for Switchy User. If there are other regular users, say user2 you could;
at which point you would by prompted for the password for user2.
When you give no user name then root is assumed.
su by itself will give you the root prompt (#) but will leave you in the same directory, the /home directory for you as user.
will give you the same root prompt (#) but you will be in the home directory for the user root which is /root.
the ~ before the user prompt($) indicates your /home/user directory just as writing out does for the root prompt.
Where the ~ indicates the home directory for the user root.