Author Topic: Remove root passwd  (Read 5906 times)

rsanz

  • Guest
Remove root passwd
« on: August 02, 2011, 03:51:45 PM »
Hi,

Some previous user os a KIII robot (with KorebotLE) did set a passwd for root.
How can I change/remove the root passwd?

Thanks,

Ricardo

kteam

  • Administrator
  • Hero Member
  • *****
  • Posts: 375
  • Karma: +7/-1
Re: Remove root passwd
« Reply #1 on: August 08, 2011, 08:38:24 AM »
Dear rsanz,

1) if you still have access to a console,
you can edit the file /etc/passwd with vi: vi /etc/passwd

Then remove the second field name XYZ of    root:XYZ:1020:1019::/home/myproj/:/bin/sh
like this :

   root::1020:1019::/home/myproj/:/bin/sh

The data above are just an example. The numbers and directories may not match your system.

Save the file;

run passwd to set a new password.


2) If you don't have access to the console because it has the password,
you will have to reflash the filesystem. Look into the instructions:

Paragraph "Upload the kernel and the root filesystem of the Korebot" of http://ftp.k-team.com/korebot/toolchain-2.6-betaV0.1/light_toolchain/development_light_kernel2.6_readme.txt

With this manipulation you will loose all the settings and files and restore to factory settings. But you have no choice (otherwise to ask the password to the person who set it! ).

The second manipulation will not remove the passwd but set it to the default one again.

Best regards,
K-Team