Skip to content

Raspbian “wheezy” root password?

January 20, 2013

If you buy Raspberry Pi and download Raspbian “wheezy” image then dd it on your SD card,you will be allowed to login using username pi and password raspberry
Using sudo will enable you to do all you want.If you are annoyed to use sudo every time, and would like to have root access then, do below

# vipw
change line
root:x:0:0:root:/root:/bin/bash
to
root::0:0:root:/root:/bin/bash
after this change reboot Raspberry Pi and after boot,enter root as username,press enter and you will have root access.After this change root password and you can now login directly as root.This is not rocket science,but could be useful for some Raspeberry Pi users

My Raspberry Pi is as below


root@pi:~# cat /proc/cpuinfo 
Processor	: ARMv6-compatible processor rev 7 (v6l)
BogoMIPS	: 697.95
Features	: swp half thumb fastmult vfp edsp java tls 
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x0
CPU part	: 0xb76
CPU revision	: 7

Hardware	: BCM2708
Revision	: 000f
Serial		: 00000000e1cf7b1a

root@pi:~# cat /etc/issue
Debian GNU/Linux wheezy/sid \n \l

root@pi:~# cat /etc/debian_version 
wheezy/sid
root@pi:~# uname -a
Linux pi 3.2.27+ #250 PREEMPT Thu Oct 18 19:03:02 BST 2012 armv6l GNU/Linux

Enjoy Raspberry Pi :)

About these ads

From → Linux

5 Comments
  1. Joe permalink

    or, you could run:

    sudo password root

    and now you have the root pwd and can login as root

  2. Joe, that is true and that is second option :)

    Thanks for comment

    E.

  3. hobojoe permalink

    “sudo password root” dosnt work

  4. The correct command is “sudo passwd root” and then you can set the password

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: