Sudo: Difference between revisions

From OLPC
Jump to navigation Jump to search
(Added note that sudo was not installed in G1G1 version.)
m (→‎See Also: +wikipedia link)
 
(8 intermediate revisions by 6 users not shown)
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.

== 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.

{| class="wikitable" style="text-align:center"
|+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
* http://en.wikipedia.org/wiki/Sudo

Latest revision as of 10:40, 19 February 2008

This command is run in the standard Linux environment via the Terminal Activity. The GUI will probably not integrate comfortably with the XO Laptop's Sugar environment. Your user experience may vary considerably depending on the established environment and the other programs running on the laptop, may need re-installation after an OS Update. See the Linux software category for other commands.

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