0

Hope all are doing good...

Here, I was created Ramdisk by using this guide (RAMDISK)and stored it into the NAND flash. By the default there is no password for root login. So I want to add the root password. How to add the root password in that Ramdisk?

Rajavarman SL
  • 57
  • 2
  • 8

1 Answers1

0

You can set up the root password to your live system first, and then while copying its files to the ramdisc as is described in the manual it will automatically taken over to there. Some relevant files: /etc/passwd, /etc/group, /etc/shadow. How to set up the root passwd depends on the configuration of your linux distro. In general case: man passwd or google "how to change root passwd for YOUR_DISTRO"

EDITED: alternatively, you can do the job what the passwd does but with the mentioned before files from your ramdisk just editing them. But in this case you need more knowledge how your system is configured.

dmi
  • 1,423
  • 1
  • 7
  • 9