|
发表于 2024-3-23 02:10:08
|
显示全部楼层
WARNING: I'M NOT RESPONSIBLE FOR ANY PROBLEM CAUSED BY THE FOLLOWING OPERATIONS. USE THIS INSTRCTIONS AT YOUR OWN RISK. ONLY TESTED ON MODEL HS8145X6 VERSION V500R021C00S115* J& @' t& h& R
If you are running an R21 version firmware on this device and it's CHINA TELECOM CUSTOMIZED:# \' A; J; K! l, V
Type this command and press enter:Then enter the password and press enter: upt+ U% f0 n, q) l: L0 D/ ]
(the password will not be displayed in the console)
* [! o( A- X8 Z) {1 v/ lIn the saf console, type the following command and press enter:$ B" m) h" d0 A2 \* U& f$ _0 I7 y3 G4 S
Copy & paste the following content in the console, press enter, then press ctrl+d:. p7 d# X, A% F- _
- sed -i '/^root/{s%/sbin/nologin%/bin/sh%;s%^root:[^:]*:%root::%}' /e8cvar/passwd
复制代码 Press ctrl+a q to exit the saf console, then type reboot and press enter to reboot your device.# C" a; B& a! U; S3 m
Login to the shell again, then use /bin/su instead of su.
2 z7 y& L& q1 dType this command in the console:" j( i$ m$ p; E! V( s: |. T
If returns 'root', then that's it. Enjoy it :) |
|