Becoming a Super User In Ubuntu

Sharing is Caring

I frequently answer questions on Yahoo! Answers and have noticed that there’s consistantly new Ubuntu (Linux) users asking how they become the super user to run some certain command. Of course, finding the answer to this question should be extremely easy with Google and it is.

In Ubuntu, by default, the root user’s password is locked. This means that we don’t know it and we can’t always sign in as root or unfortunately use the normal linux su command either. Locking the root user’s password forces users to use the lowest needed acccess which reduces some of the ways a system can be attacked or “rooted.”

The command in ubuntu is sudo which allows programs (or commands) to run with root-level privileges.The syntax is very simple:

sudo /etc/init.d/httpd restart

In this example, I just restarted apache.

For more information, please check out the sudo man page

Sharing is Caring

Brian is a software architect and technology leader living in Niagara Falls with 13+ years of development experience. He is passionate about automation, business process re-engineering, and building a better tomorrow.

Brian is a proud father of four: two boys, and two girls and has been happily married to Crystal for more than ten years. From time to time, Brian may post about his faith, his family, and definitely about technology.

1 Comments

Comments are closed.