The “root” user is the name of the user who can control everything on the entire computer. We call this the “super user” but this is not connected with the “su” (switch user) command. Here we will describe the proper way to escalate a normal users privileges to the root user on the system.
Applicable to Centos Versions:
- Centos 4.x
- Centos 5.x
Requirements including prerequisite reading or packages
Doing the work
- To become root, first you must right click and open a terminal on your desktop or conmtrol+alt+F2. Then, you type:
- Special note:
su --login or: su -l or: su -
Note: the "--login" "-l" or the "-" is very important, this sets the environment and path of the user you're trying t switch to (man su). Then, you have to type in your root password. You set this when you installed Centos. Also see sudo
How to test
Common problems and fixes
If you’re using the control+alt+F2 option, you’ll need to enter the username “root” (without quotes) then your root password.