Subscribe to RSS Subscribe to Comments Blog of Roy Chan

Blog of Roy Chan

How to login root in Nokia OS2008 (N800/N810)

Skype in OS2008

I have just upgrade my new N800 to OS2008 beta (Maemo 4.0). Most program run faster and more smooth in OS2008, including MicroB Browser and the PDF Viewer. Of course, you should aware that many application are not ported to OS2008 yet. (Compared that there is 191 apps in for OS2007 but only 37 for OS2008 )

After upgraded to OS2008, I found that I can’t login as root as in OS2007. Different from the GNU/Linux embedded devices I used before, Maemo use a better security structure. It run most application in a common user “user” instead of “root” in other embedded platforms. Sudo is used to execute tasks needed system administrator right. And you will see many rules is defined in /etc/sudoers.

### Automatically added by update-sudoers start ###
user ALL = NOPASSWD: /etc/init.d/ke-recv start
user ALL = NOPASSWD: /etc/init.d/ke-recv stop
user ALL = NOPASSWD: /etc/init.d/alarmd start
user ALL = NOPASSWD: /etc/init.d/alarmd stop
user ALL = NOPASSWD: /etc/init.d/osso-hss start
user ALL = NOPASSWD: /etc/init.d/osso-hss stop
user ALL = NOPASSWD: /usr/bin/osso-product-info
user ALL = NOPASSWD: /bin/rm -f /tmp/.opi.tmp
### Automatically added by update-sudoers end ###

In OS2007, the root user was “protected” by a simple password “rootme”. It wouldn’t cause much problem until you install ssh server in it. The password of user “user” is locked. You can change it by “su” as root and change the password of user by “passwd user“. However, things changed in OS2008. They locked both the password of “root” and “user”. You can’t login root with “su” anymore.

It is said that you can use switch it to R&D mode or install a package becomeroot to get back your root again. I have no idea about R&D mode but found the becomeroot. Here is the procedure (Beware that the following step will introduce security risk to your tablet, make sure you know what you are doing and pick good passwords):

  • Open the web browser (MicroB browser)
  • Download the becomeroot package with the web browser, choose “Open” to install it.
  • After that you can login the root by typing the following command in the XTerm:
  sudo gainroot
  • Now you can change the password of “user” and “root” with “passwd user” and “passwd root“.

Warnning: Notice you again that the above action may allow people to take the control your tablet from wireless network. Choose good passwords for the both account.

Share It: [] [Technorati] [Google Bookmark] [Yahoo MyWeb] [Furl]


  1. December 3rd, 2007 | 23:49

    […] 似乎還是用 becomeroot 套件比較方便。 […]

  2. January 8th, 2008 | 3:22

    […] This is somewhat complicated on an N800 running OS2008 because the default passwords for ‘user’ and ‘root’ aren’t the standard ‘rootme’. You’ll have to jump through a few hoops to become root (thanks Roy Chan) but the rest is fairly easy. First, install becomeroot on the N800. Then, fire up xterm and type “sudo gainroot” to become root. Invoke “killall sshd” to kill the currently running ssh daemon and restart it with the command ’sshd -p 21′. You can now ssh into the client via port 21 which isn’t block by CAEN. […]

Leave a reply

  • :-)
  • :-D
  • :lol:
  • ;-)
  • :-P
  • :-(
  • :'(
  • :'-(
  • >:-(
  • :-O
  • :annoy:
  • :appeal:
  • :asleep:
  • Zzz...
  • :-Q
  • 8-)
  • B-)
  • :clap:
  • :enjoy:
  • :blush:
  • :shy:
  • :*
  • :inlove:
  • :inlove2:
  • :inlove3:
  • :love:
  • :allure:
  • 8D~~~
  • :amative:
  • :chatter:
  • :bored:
  • bored2:
  • X-O~~~
  • :-'|
  • 8-S
  • #_#
  • :dontknow:
  • :embarrased:
  • :excite:
  • :faint:
  • :fuzzy:
  • :plan:
  • :conceal:
  • :regret:
  • :punched:
  • :silent:
  • :-X
  • :tease:
  • :vent:
  • :win:
  • :work:
  • :good:
  • :shit:
  • :bomb:

Based on Fluidity© 1998-2007 Roy Hiu-yeung Chan