Raspbian does NOT have a root
password. It differs from Ubuntu in that respect. You can create a root
password, but AFAIK that requires sudo
.
The best bet is to edit the files by mounting the SD Card on a Linux machine.
This can be done on the Pi if
- you have a SD Card reader
- You use a good OS on another SD to boot the Pi.