Sudo: Difference between revisions

From OLPC
Jump to navigation Jump to search
No edit summary
(→‎su, sudo, or root ?: made a table)
Line 9: Line 9:
== su, sudo, or root ? ==
== su, sudo, or root ? ==


These three commands can be used to accomplish the same basic thing. It would be good to have a table here of which ones worked on which version of the OS. Something like this:
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.


{| class="wikitable" style="text-align:center"
{|
|+Usable super-user commands per build
|-
|-
|Build || Has su || has sudo || has root
! Build !! su !! sudo !! root
|-
|-
|pre-G1G1 builds || yes || no || ?
! pre-G1G1 builds
| yes || no || ?
|-
|-
|G1G1 builds || yes || no || ?
! G1G1 builds
| yes || no || ?
|-
|-
|joyride builds || no || no || yes
! joyride builds
| no || no || yes
|}
|}

If you know the answers to the fields marked "?" above, please complete them.



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, or (more dangerous) just use 'sudo -i' in place of su.

Revision as of 10:19, 30 January 2008

Sudo is a command in the terminal activity. It means Super User Do : X.

You use it before commands that you want to execute that require you to be a privileged user or root.

As the root user is going away in upcoming builds (maybe update.1?), 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. 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 ?
G1G1 builds yes no ?
joyride builds no no yes

If you know the answers to the fields marked "?" above, please complete them.


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.

See Also

  • su the su command