How to become a root or superuser in ubuntu

If you want to run a command with superuser or root  which deals with system files you can use

“sudo”

here sudo, sudoedit – execute a command as another user.sudo allows a permitted user to execute a command as the superuser or
another user, as specified in the sudoers file.

for examples :

admin@smartproteam$ sudo cat /var/log/syslog

or

you can become as root using below command

admin@smartproteam$ sudo -i

root@smartproteam$ cat /var/log/syslog

Related Posts with Thumbnails

Leave a Reply

Your email address will not be published. Required fields are marked *

*

ERROR: si-captcha.php plugin says GD image support not detected in PHP!

Contact your web host and ask them why GD image support is not enabled for PHP.

ERROR: si-captcha.php plugin says imagepng function not detected in PHP!

Contact your web host and ask them why imagepng function is not enabled for PHP.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Comment moderation is enabled. Your comment may take some time to appear.