当前位置:网站首页>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 .
边栏推荐
- Unity3d Learning Notes 6 - GPU instantiation (1)
- Matlab 信号处理【问答随笔·2】
- SAP HR 家庭成员信息
- The 19th Zhejiang Provincial College Programming Contest 2022 f.easyfix chairman tree
- New potential energy of industrial integration, Xiamen station of city chain technology digital summit successfully held
- Cloud native data warehouse analyticdb MySQL user manual
- The 19th Zhejiang Provincial Collegiate Programming Contest 2022浙江省赛 F.EasyFix 主席树
- SAP 内存参数调优过程
- turbo intruder常用脚本
- 2022注册测绘师备考开始 还在不知所措?手把手教你怎么考?
猜你喜欢
Digital procurement management system for fresh food industry: help fresh food enterprises solve procurement problems and implement online procurement throughout the process
UE4_ Ue5 combined with Logitech handle (F710) use record
B_QuRT_User_Guide(36)
Markdown
Three questions TDM
leetcode-520. Detect capital letters -js
Ros2 topic (03): the difference between ros1 and ros2 [01]
电子设备行业智能供应链协同平台解决方案:解决低效, 赋能产业数字化升级
PCI-Express接口的PCB布线规则
深入理解Mysql锁与事务隔离级别
随机推荐
UE4_ Ue5 combined with Logitech handle (F710) use record
Dynamic agent explanation (July 16, 2020)
Unity3d Learning Notes 6 - GPU instantiation (1)
StringUtils工具类
B_ QuRT_ User_ Guide(37)
SRM supplier cloud collaborative management platform solution for building materials industry to realize business application scalability and configuration
B_ QuRT_ User_ Guide(40)
Spark 离线开发框架设计与实现
List. How to achieve ascending and descending sort() 2020.8.6
Install Fedora under RedHat
B_ QuRT_ User_ Guide(36)
电子设备行业智能供应链协同平台解决方案:解决低效, 赋能产业数字化升级
The efficient s2b2c e-commerce system helps electronic material enterprises improve their adaptability in this way
Fibonacci number of dynamic programming
HDU 4747 Mex「建议收藏」
Coreseek: the second step is index building and testing
Experience sharing of system architecture designers in preparing for the exam: the direction of paper writing
UE4_ Ue5 panoramic camera
USB (XVII) 2022-04-15
Freelink open source call center design idea