Sudo: Difference between revisions

From OLPC
Jump to navigation Jump to search
(Dont tell people to use sudo -i if they don't know what it is)
Line 1: Line 1:
{{Linux Software}}
Sudo is a command in the [[terminal]] activity. It means Super User Do : X.


== What is it? ==
You use it before commands that you want to execute that require you to be a privileged user or <tt>[[root]]</tt>.
Sudo is a command that must be typed in at the [[terminal]] activity or a [[console]]. It means ''Super-User Do''. You need to use it before other commands that require you to be a privileged user or <tt>[[root]]</tt>. If you try a command and it says you don't have the privileges needed, you probably need to sudo.


As the <tt>[[root]]</tt> user is going away in upcoming builds (maybe update.1?), this is important to remember.
As the <tt>[[root]]</tt> user is going away in upcoming builds this is important to remember.


The sudo command is ''not'' installed in the version installed with the Give-one-get-one program; use <tt>[[root]]</tt> instead.
The sudo command is ''not'' installed in the version installed with the Give-one-get-one program; use <tt>[[root]]</tt> instead.
Line 9: Line 10:
== su, sudo, or root ? ==
== su, sudo, or root ? ==


These three commands can be used to accomplish the same basic thing. Below is a table showing which commands work on which version of the OS.
These three commands can be used to accomplish the same basic thing (managing privileges). Below is a table showing which commands work on which version of the OS.


{| class="wikitable" style="text-align:center"
{| class="wikitable" style="text-align:center"
Line 26: Line 27:
|}
|}


Many instructions on this wiki tell you to type in su in the terminal before further commands. If your version does not have su, you should (preferably) put 'sudo' at the beginning of each line in further commands, or (more dangerous) just use 'sudo -i' in place of su.
Many instructions on this wiki tell you to type in su in the terminal before further commands. If your version does not have su, you should (preferably) put 'sudo' at the beginning of each line in further commands.


==See Also==
==See Also==

Revision as of 18:37, 14 February 2008

Template:Linux Software

What is it?

Sudo is a command that must be typed in at the terminal activity or a console. It means Super-User Do. You need to use it before other commands that require you to be a privileged user or root. If you try a command and it says you don't have the privileges needed, you probably need to sudo.

As the root user is going away in upcoming builds this is important to remember.

The sudo command is not installed in the version installed with the Give-one-get-one program; use root instead.

su, sudo, or root ?

These three commands can be used to accomplish the same basic thing (managing privileges). Below is a table showing which commands work on which version of the OS.

Usable super-user commands per build
Build su sudo root
pre-G1G1 builds yes no yes
G1G1 builds yes no yes
joyride builds no no yes

Many instructions on this wiki tell you to type in su in the terminal before further commands. If your version does not have su, you should (preferably) put 'sudo' at the beginning of each line in further commands.

See Also

  • su the su command