Note: These instructions assume the person issuing the command has been added to the system sudoers access file. If the system is hosted by the Division of IT, you can request this access by sending an email to DoIT-ServiceManagement@csulb.edu.
Use the command “sudo” in front of any command that requires elevated privileges.
Example: Sudo vim /etc/hosts.allow
Or, if you want to run as a different user besides root:
Example: Sudo –u username cat /home/username