What is the password for the root user?

Hey,

I installed the Raspi image that this website provided onto my Raspberry Pi. When I try to access cd /root I am getting ‘permission denied’ warning, and when I run the su - command it asks for a password, which i have no idea what it is… does anyone know what this password is set to?

type:

sudo passwd

and set in whatever you like.

The root user has a disabled password; you cannot authenticate by password.

The pi user is set up with sudo access. Try ‘sudo bash’



pi@raspberrypi:~/dump978 $ sudo passwd
Enter new UNIX password: 
Retype new UNIX password: 
passwd: password updated successfully
pi@raspberrypi:~/dump978 $ su -
Password: 
root@raspberrypi:~# 


Hey All,

Thanks for the replies. I was able to type* sudo bash* to get elevated access. But in the end I just did what edgy suggested, and simply used sudo passwd to set one and now it works a treat, I can navigate to* cd /root *without the permission error.

Cheers

Another way found on the RPi website does a sudo su to gain superuser status


pi@dogberry31:~ $ sudo su
root@dogberry31:/home/pi# exit
exit
pi@dogberry31:~ $


Seems to me setting a non-defuault password would be a bit more secure if your system was hacked.

Setting a non-default password for the pi user is definitely a good idea! That user is root-equivalent since it has passwordless sudo access; the distinction is just there so that you have to deliberately sudo to do anything that could be potentially destructive.