当前位置:网站首页>What if once again forgets the login password of raspberry pie? And you don't have a monitor yet! Today, I would like to introduce a method
What if once again forgets the login password of raspberry pie? And you don't have a monitor yet! Today, I would like to introduce a method
2022-07-07 23:32:00 【Little river god is tangled】
Preface
I believe you won't go to your raspberry pie for a long time , Will forget the password , But I don't have a monitor , There is no way to use modification cmdline.txt To retrieve the password . Today, I will introduce a modification pi To change the login password of raspberry pie .
One 、 Preparation before modification
1. A card reader ;
2. It can be used Linux System , such as ubuntu virtual machine .
Two 、 Modification steps
1. Mount the memory card of raspberry pie to the virtual machine
Remove the memory card of raspberry pie , Install it in the card reader and insert it into the computer ; And connect to the virtual machine ,
And then open the terminal , Check whether the memory card exists :
dmesg

Create an empty folder in the current path , And put the memory card sdg2( The first mount is usually sdb2) Mount to this file :
mkdir ext4
sudo mount /dev/sdg2 ext4
cd ext4/
2. Change Password
The passwords for raspberry pie are all in /etc/shadow Under the folder , But the password inside is encrypted , We have no idea what that means :
But what we can only know is ,pi The back two The colon It must be a password . Then we can change the password as long as we modify these contents .
We can start at Ubuntu Create a temporary user in , And the user sets the password , In this way, we can replace the password of this user pi I've got my password .
stay Ubuntu Terminal creation user :
sudo useradd test
sudo passwd test
// Enter your own password
Once created , open Ubuntu Of shadow:
sudo vi /etc/shadow

Now , Just put test The password part of is overwritten pi The same part of , You can successfully change the password of raspberry pie .
边栏推荐
- 树后台数据存储(採用webmethod)[通俗易懂]
- Adrnoid Development Series (XXV): create various types of dialog boxes using alertdialog
- FPGA basics catalog
- 统计电影票房排名前10的电影并存入还有一个文件
- leetcode-520. Detect capital letters -js
- 移动端异构运算技术 - GPU OpenCL 编程(基础篇)
- Sequence of entity layer, Dao layer, service layer and controller layer
- Extended tree (I) - graphic analysis and C language implementation
- 2021icpc Shanghai h.life is a game Kruskal reconstruction tree
- php 使用阿里云存储
猜你喜欢

深入理解Mysql锁与事务隔离级别

B_QuRT_User_Guide(36)

SAP HR 社会工作经历 0023

First week of July

SAP HR奖罚信息导出

Digital procurement management system for fresh food industry: help fresh food enterprises solve procurement problems and implement online procurement throughout the process

In the field of software engineering, we have been doing scientific research for ten years!

js 获取对象的key和value

2021icpc Shanghai h.life is a game Kruskal reconstruction tree

Explain
随机推荐
Live-Server使用
Unity3d learning notes 4 - create mesh advanced interface
统计电影票房排名前10的电影并存入还有一个文件
Design and implementation of spark offline development framework
Description of longitude and latitude PLT file format
POJ2392 SpaceElevator [DP]
0-1背包问题
SQL database execution problems
js 获取对象的key和value
FPGA basics catalog
Coreseek: the second step is index building and testing
USB (XVII) 2022-04-15
648. Word replacement
Technology at home and abroad people "see" the future of audio and video technology
System design overview
SAP HR 劳动合同信息 0016
13、 System optimization
MySQL Index Optimization Practice I
Vulnerability recurrence ----- 49. Apache airflow authentication bypass (cve-2020-17526)
Mysql索引优化实战二