当前位置:网站首页>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 .
边栏推荐
- Summary of common methods of object class (September 14, 2020)
- 系统设计概述
- Matlab SEIR infectious disease model prediction
- LeeCode -- 6. Z 字形变换
- Coreseek:第二步建索引及測试
- 2022注册测绘师备考开始 还在不知所措?手把手教你怎么考?
- 给出一个数组,如 [7864, 284, 347, 7732, 8498],现在需要将数组中的数字拼接起来,返回「最大的可能拼出的数字」
- 13、 System optimization
- USB (XVIII) 2022-04-17
- B_ QuRT_ User_ Guide(40)
猜你喜欢

ROS2专题(03):ROS1和ROS2的区别【01】

UE4_ Use of ue5 blueprint command node (turn on / off screen response log publish full screen display)

UE4_ Ue5 panoramic camera

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

Matlab 信号处理【问答随笔·2】

leetcode-520. Detect capital letters -js

LDO稳压芯片-内部框图及选型参数

LeeCode -- 6. Zigzag transformation

B_QuRT_User_Guide(36)

In the field of software engineering, we have been doing scientific research for ten years!
随机推荐
Archlinux install MySQL
Entity层、DAO层、Service层、Controller层 先后顺序
Freelink open source call center design idea
StringUtils工具类
Solution of intelligent supply chain collaboration platform in electronic equipment industry: solve inefficiency and enable digital upgrading of industry
LM12丨Rolling Heikin Ashi二重K线滤波器
Cloud native is devouring everything. How should developers deal with it?
UE4_ Ue5 combined with Logitech handle (F710) use record
Solution: prompt "unsupported video format" when inserting avi format video into the message
VS扩展工具笔记
PCI-Express接口的PCB布线规则
统计电影票房排名前10的电影并存入还有一个文件
2022 Season 6 perfect children's model Shaanxi finals came to a successful conclusion
伸展树(一) - 图文解析与C语言实现
leetcode-520. Detect capital letters -js
Unity3d Learning Notes 6 - GPU instantiation (1)
Coreseek:第二步建索引及測试
ROS2专题(03):ROS1和ROS2的区别【02】
New potential energy of industrial integration, Xiamen station of city chain technology digital summit successfully held
做自媒体视频剪辑怎么赚钱呢?