<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://maemo.octonezd.me/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=206.217.140.230</id>
	<title>Maemo Wiki Mirror - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://maemo.octonezd.me/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=206.217.140.230"/>
	<link rel="alternate" type="text/html" href="https://maemo.octonezd.me/index.php/Special:Contributions/206.217.140.230"/>
	<updated>2026-04-21T20:46:48Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://maemo.octonezd.me/index.php?title=Root_access&amp;diff=36375</id>
		<title>Root access</title>
		<link rel="alternate" type="text/html" href="https://maemo.octonezd.me/index.php?title=Root_access&amp;diff=36375"/>
		<updated>2011-04-11T14:51:04Z</updated>

		<summary type="html">&lt;p&gt;206.217.140.230: /* OpenSSH */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{danger}}&lt;br /&gt;
&lt;br /&gt;
Having [[:wikipedia:Superuser|root]] access is an important step for users interested in modifying things &amp;quot;under the covers&amp;quot; of their tablets; without it, you won&#039;t have the necessary permissions to make those modifications. Root access is disabled by default on new tablets. Thankfully, the steps to enable root access are simple.&lt;br /&gt;
&lt;br /&gt;
== Why do I want root? ==&lt;br /&gt;
&lt;br /&gt;
Root access is &#039;&#039;not&#039;&#039; required to install additional applications through Application Manager, open X Terminal or use your tablet in day-to-day operation.&lt;br /&gt;
&lt;br /&gt;
If you want to edit the underlying system configuration, install applications &#039;&#039;through the command line&#039;&#039; or other low-level tasks, you &#039;&#039;will&#039;&#039; require root access.&lt;br /&gt;
&lt;br /&gt;
== rootsh ==&lt;br /&gt;
&amp;lt;small&amp;gt;&#039;&#039;Note: As rootsh is the simplest option, and does not require a desktop computer or running additional services, it is the recommended method for gaining root access.&#039;&#039;&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;rootsh&amp;lt;/code&amp;gt; is available in [[Extras]], and can be installed from the Application manager if you have the Extras repository enabled. It is also available [http://maemo.org/downloads/product/Maemo5/rootsh/ directly from maemo.org].&lt;br /&gt;
&lt;br /&gt;
Then, from the [[terminal|shell]], run:&lt;br /&gt;
 sudo gainroot&lt;br /&gt;
(or &amp;lt;code&amp;gt;root&amp;lt;/code&amp;gt; for short). This will give you a root shell.&lt;br /&gt;
&lt;br /&gt;
== sudser ==&lt;br /&gt;
&amp;lt;small&amp;gt;&#039;&#039;Note: Some scripts require rootsh to run properly, so it&#039;s recommended to have both suders and rootsh installed if you&#039;re using sudser.&#039;&#039;&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
sudser adds the user to sudoers so you can use the &amp;lt;code&amp;gt;sudo&amp;lt;/code&amp;gt; command to run commands as root. It is available in Extras, and can be installed from the Application manager if you have Extras enabled. &lt;br /&gt;
&lt;br /&gt;
It is not currently available for [[Open development/Maemo roadmap/Fremantle|Fremantle]] (i.e. [[Nokia N900|N900]]).&lt;br /&gt;
&lt;br /&gt;
Then, from the shell, run &amp;lt;code&amp;gt;sudo &#039;&#039;command&#039;&#039;&amp;lt;/code&amp;gt;. This will execute &amp;lt;code&amp;gt;&#039;&#039;command&#039;&#039;&amp;lt;/code&amp;gt; with root privileges.&lt;br /&gt;
&lt;br /&gt;
== OpenSSH ==&lt;br /&gt;
&lt;br /&gt;
# Enable Extras (if it is disabled)&lt;br /&gt;
# Install OpenSSH (client and server)&lt;br /&gt;
#* This will prompt you to change the root password from the default, &amp;lt;code&amp;gt;rootme&amp;lt;/code&amp;gt;&lt;br /&gt;
# SSH into your tablet as root&lt;br /&gt;
#* For local access, run &amp;lt;code&amp;gt;ssh root@localhost&amp;lt;/code&amp;gt;&lt;br /&gt;
#* For remote access, run &amp;lt;code&amp;gt;ssh root@&#039;&#039;tablet&#039;s ip address&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
# Use the root password entered at step (2) to log in&lt;br /&gt;
&lt;br /&gt;
To debug issues with SSH connections, use the SSH &#039;-v&#039; option.&lt;br /&gt;
&lt;br /&gt;
(To get SSH X forwarding (&#039;-X&#039; option) to work, you need to install &#039;&#039;xauth&#039;&#039; (or &#039;&#039;xbase-clients&#039;&#039;) package and enable X forwarding in the SSH server configuration file on the machine where you&#039;re connecting to.)&lt;br /&gt;
*[[http://www.thesiswritinghelp.co.uk thesis help]]&lt;br /&gt;
&lt;br /&gt;
== Research &amp;amp;amp; Development Mode (R&amp;amp;amp;D or RD Mode) ==&lt;br /&gt;
&lt;br /&gt;
{{ambox|text=As R&amp;amp;D mode has other side effects beyond simply enabling root access (including several that may negatively impact battery life), it is &#039;&#039;not&#039;&#039; the recommended method for gaining root access. Use [[#rootsh|rootsh]] instead.}}&lt;br /&gt;
&lt;br /&gt;
{{main|R&amp;amp;D mode}}&lt;br /&gt;
&lt;br /&gt;
You can enable the R&amp;amp;D mode which enables you to execute &amp;lt;code&amp;gt;sudo gainroot&amp;lt;/code&amp;gt; to get a root shell, simply follow the setup steps for flashing covered in [[Updating the firmware|updating the tablet firmware]], then execute&lt;br /&gt;
&lt;br /&gt;
 sudo ./flasher-3.5 --enable-rd-mode -R&lt;br /&gt;
&lt;br /&gt;
You are now in R&amp;amp;D mode, and the sudo gainroot script&#039;s check will be satisfied.&lt;br /&gt;
&lt;br /&gt;
== A note on sudo ==&lt;br /&gt;
This information is aimed at people who come to maemo from other linux distributions (Debian for example) that may have used sudo in a different way.&lt;br /&gt;
&lt;br /&gt;
In fremantle (Maemo 5) sudo is a key part of the system. It is used by system processes that are started as the user to provide access (as root) when needed.&lt;br /&gt;
&lt;br /&gt;
Examples of this are:&lt;br /&gt;
Media Tracker.&lt;br /&gt;
The firmware version on the &#039;Settings&#039; &amp;gt; &#039;About Product&#039; page.&lt;br /&gt;
&lt;br /&gt;
Both of these will malfunction if there are problems with sudo.&lt;br /&gt;
&lt;br /&gt;
Sudo relies on &amp;lt;code&amp;gt;/etc/sudoers&amp;lt;/code&amp;gt;, a configuration file that details who can run what commands. &amp;lt;code&amp;gt;/etc/sudoers&amp;lt;/code&amp;gt; is traditionally modified by using the &#039;visudo&#039; command. DO NOT DO THIS ON MAEMO. In maemo sudoers is regenerated periodically from config snippets in &amp;lt;code&amp;gt;/etc/sudoers.d/&amp;lt;/code&amp;gt;, using &amp;lt;code&amp;gt;visudo&amp;lt;/code&amp;gt; can cause the slow death of your system as your edit gets pushed further down /etc/sudoers.&lt;br /&gt;
&lt;br /&gt;
For those who don&#039;t know, &amp;lt;code&amp;gt;/etc/sudoers&amp;lt;/code&amp;gt; works on a last match principle, so if your edit conflicts with entries above it, it will break those entries.&lt;br /&gt;
&lt;br /&gt;
The &#039;correct&#039; way to do this would be to put your entry in a file in &amp;lt;code&amp;gt;/etc/sudoers.d/&amp;lt;/code&amp;gt;. I leave the detail of this up the experience of the end-user. Just be advised that using &amp;lt;code&amp;gt;visudo&amp;lt;/code&amp;gt; runs the risk of subtly breaking your system.&lt;br /&gt;
&lt;br /&gt;
[[Category:Wiki page of the day]]&lt;br /&gt;
[[Category:Power users]]&lt;/div&gt;</summary>
		<author><name>206.217.140.230</name></author>
	</entry>
</feed>