Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can anybody explain or point the use of sudo command, perhaps the os give su command. Does it not solve the problem of login as superuser.

Let me rephrase it 1) what is the advantages of sudo over su ? 2) what are notable features of sudo ?

share|improve this question

closed as not a real question by Warner, RobM, gravyface, Zypher, Doug Luxem Aug 2 '10 at 18:27

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

@Zypher, Wow, couldn't someone have just edited this. Too bad they don't allow suggested edits for closed questions. It's obviously a real question, just a very basic one. – Lance Roberts Jun 12 '11 at 3:45
up vote 5 down vote accepted

The sudo command is used to give a particular command root rights for a single instance.

If your user belongs to the sudo group, you can type: "sudo command" Then enter your password and it will be executed as root.

This is very common on Mac OSX, as typically passwords for the root account are not the same as your admin account. Therefor, if you need a root shell, you could always "sudo bash" to accomplish this.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.