카테고리 없음
WSL 윈도우 10 Ubuntu 분실 비밀번호 초기화
아이티.파머
2020. 4. 1. 11:33
반응형
비밀번호 분실시 커멘드창에서 다음 명령어로 비밀번호를 초기화 한다.
C:\Windows\system32>wsl --user root
root@skan:/mnt/c/Windows/system32# passwd
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
root@skan:/mnt/c/Windows/system32#
root@skan:/mnt/c/Windows/system32# passwd sangkil
Enter new UNIX password:
Retype new UNIX password:
root@skan:/mnt/c/Windows/system32# exit
logout
변경된 비밀번호로 재접속 한다.
C:\Windows\system32>bash
Welcome to Ubuntu 20.04.1 LTS (GNU/Linux 4.4.0-19041-Microsoft x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
System information as of Wed Jul 7 15:58:55 KST 2021
System load: 0.52 Processes: 7
Usage of /home: unknown Users logged in: 0
Memory usage: 48% IPv4 address for eth0: 10.184.70.55
Swap usage: 0% IPv4 address for eth1: 172.25.48.1
116 updates can be installed immediately.
49 of these updates are security updates.
To see these additional updates run: apt list --upgradable
The list of available updates is more than a week old.
To check for new updates run: sudo apt update
This message is shown once once a day. To disable it please create the
/home/skan/.hushlogin file.
skan@skan-NT:/mnt/c/Users/media$
반응형