Administering
-
8. Getting Admin Power
Last How to Get the Admin Super-Powers.
To Login as SuperUser:
sudo su
If Got “User is Not in Sudoers file” then see: How to Enable sudo
Then to Logout:exit
To Protect your System from the potential Damage of an Hazardous Crazy Command Execution the Logout should be executed every Time your Setup is Achieved!
Finally, to Execute a Single Command as SuperUser:su -c 'myCommand'
Or:
sudo myCommand
So for instance to List the Protected root Directory try to run:
sudo ls /root
-
9. Setting Permissions
How to Change Permissions on CentOS File System
Congratulations, you are now Initiated to the awesome Linux CentOS Command Line Shell. ;)
Contents