当前位置:网站首页>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 .
边栏推荐
- [microservices SCG] gateway integration Sentinel
- Technology at home and abroad people "see" the future of audio and video technology
- USB (XVIII) 2022-04-17
- Windows set redis to start automatically
- Unity3d learning notes 4 - create mesh advanced interface
- The text editor of markdown class should add colors to fonts (including typora, CSDN, etc.)
- 云原生正在吞噬一切,开发者该如何应对?
- 13、 System optimization
- Coreseek:第二步建索引及測试
- HDU 4747 mex "recommended collection"
猜你喜欢
Unity3d learning notes 5 - create sub mesh
Matlab 信号处理【问答随笔·2】
漏洞复现----49、Apache Airflow 身份验证绕过 (CVE-2020-17526)
深入理解Mysql锁与事务隔离级别
First week of July
Solution of intelligent supply chain collaboration platform in electronic equipment industry: solve inefficiency and enable digital upgrading of industry
LM12丨Rolling Heikin Ashi二重K线滤波器
生鲜行业数字化采购管理系统:助力生鲜企业解决采购难题,全程线上化采购执行
List. How to achieve ascending and descending sort() 2020.8.6
13、 System optimization
随机推荐
B_QuRT_User_Guide(39)
VS扩展工具笔记
Force deduction solution summary 648 word replacement
8.31 Tencent interview
USB (XIV) 2022-04-12
The efficient s2b2c e-commerce system helps electronic material enterprises improve their adaptability in this way
HDU 4747 mex "recommended collection"
php 使用阿里云存储
0-1背包问题
v-for遍历对象
turbo intruder常用脚本
谷歌浏览器怎么登录及开启同步功能
How can we make money by making video clips from our media?
JS get the key and value of the object
Fibonacci number of dynamic programming
PHP uses Alibaba cloud storage
做自媒体视频剪辑怎么赚钱呢?
SLAM面试总结
FPGA basics catalog
Matlab 信号处理【问答随笔·2】