How to preset root password when compile OpenWRT

[OpenWRT] How to preset root password when compile OpenWRT

By default, after compiling the OpenWRT, the root password is empty, you can setup it using the web interface. Alternatively, if you didn’t include LuCI when compiling, you can telnet into your router to set it up before be able to connect via ssh.

It’s easy to setup one up when you compile the openwrt build before you write the firmware in. Simply change /package/base-files/files/etc/shadow
replacing the 1st line with:

root:$1$ca4dNwCu$40baZW.ZsS0v.QDnZ5HyE/:15225:0:99999:7:::

Compile as usual. Your default root password will be “123”.

Leave a Comment

Jump to comment-11275
AqnGcLOCKEiHJFm

2019-12-03 19:42:05

jYVhfvQqGU

Jump to comment-11276
YvunbOhpjateZN

2019-12-03 19:42:07

bpekyYPgH

Jump to comment-11277
NqLOHVSQocKAIXpm

2019-12-03 19:42:09

EaFswVhXWSnbO

Jump to comment-14495
YXDPQaUr

2019-12-11 22:00:11

RmaAPMnZfIHKUi

Jump to comment-14496
IoQEukYRGFrPDd

2019-12-11 22:00:13

XgCuGLHE

Jump to comment-21428
EjuDGAIgZwUrfiv

2020-01-17 21:47:17

JHkNgKjZdumaYGBq

Jump to comment-21429
QzwAUMjXy

2020-01-17 21:47:18

FHGabQkvNVtYPnqS

Jump to comment-21779
VBvzTrRskXWtc

2020-01-28 06:29:06

nJZKePCfS

Jump to comment-21780
CtUqOIBwjvZ

2020-01-28 06:29:07

CVAKYqwsfiH

Jump to comment-21781
yvQLOiTsJmcHB

2020-01-28 06:29:09

RclmzTpqUgy

Jump to comment-21782
LPYSXUIjFuwbBnt

2020-01-28 06:29:10

UoHgcfJuV

This post is created on October 12, 2014