Su -l: Difference between revisions

From OLPC
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 2: Line 2:




'''su -''' is a [[Linux]] command for '''s'''ubstitute '''u'''ser or group rights while running a command within the [[Terminal Activity]] or a command console. In its default form, <tt>'''su -''' </tt>, it enables the root or admin or super user's power to modify the system (see '''[[root]]''' user).
{{Code|'''su -'''}} is a [[Linux]] command for '''s'''ubstitute '''u'''ser and group rights while running a command within the [[Terminal Activity]] or a command console. In its default form, {{Code|'''su -'''}}, it enables the root or admin or super user's permissions to modify the system (see {{Code|'''[[root]]'''}} user).


==Overview==
==Overview==


It gives you a login shell, which affects the commands that are available.
It gives you a login shell session that affects the commands that are available.


Various instructions will direct you to type <tt>'''su -l'''</tt> (<tt>'''l''' </tt>being a lower-case L for ''login'') or just <tt>'''su'''</tt>. On some laptops, the next prompt will be "Password:". If this happens, and you do not have a root password, type <tt>'''sudo sh'''</tt> instead.
Various instructions will direct you to type {{Code|'''su -l'''}} ({{Code|'''l'''}} being a lower-case letter L, for ''login'') or just {{Code|'''su'''}}. On some laptops, the next prompt will be "Password:". If this happens, and you do not have a root password, type {{Code|'''sudo su'''}} instead.

Enter the '''Ctrl D''' key combination (or enter the {{Code|logout}} command) to exit the root user session.


See reference wiki, http://man-wiki.net/index.php/1:su
See reference wiki, http://man-wiki.net/index.php/1:su

Latest revision as of 05:24, 2 August 2012

This page is part of the XO Support FAQ.     Support Index | Print This Page
<imagemap>

Image:Support-banner-square.png|173px|community support pages rect 0 0 135 204 [1] rect 135 0 345 204 Support FAQ rect 0 205 135 408 [2]

  1. Comment : there's some whitespace here:

rect 135 205 345 408 Other support

  1. maybe desc none is better. testing.

desc none

</imagemap>


su - is a Linux command for substitute user and group rights while running a command within the Terminal Activity or a command console. In its default form, su -, it enables the root or admin or super user's permissions to modify the system (see root user).

Overview

It gives you a login shell session that affects the commands that are available.

Various instructions will direct you to type su -l (l being a lower-case letter L, for login) or just su. On some laptops, the next prompt will be "Password:". If this happens, and you do not have a root password, type sudo su instead.

Enter the Ctrl D key combination (or enter the logout command) to exit the root user session.

See reference wiki, http://man-wiki.net/index.php/1:su