본문 바로가기

TroubleShooting

비밀번호 재설정

윈도우

더보기

A. 부팅 USB 버전

1. 부팅USB 연결 -> Shif+F10


2. 로그인 창에서 cmd 활성을 위한 준비.

diskpart(list volume)로 드라이브 확인 -> copy e:\windows\system32\cmd e:\windows\system32\utilman.exe

> diskpart

> list volume // 드라이브 확인

> exit

> copy e:\windows\system32\cmd e:\windows\system32\utilman.exe (로그인 창에서 cmd 활성 위한 준비)

 

3. 로그인 창에서 cmd 실행

cmd 종료 후 재부팅 -> cmd 켜기(로그인창 우측 하단 접근성 아이콘 클릭)

 

4. 계정명 확인 및 비번 변경

> net user

> net user "띄어쓰기 있는 이름" 1234 // 유저명 비밀번호

 

부팅 USB 버젼 참고: https://m.blog.naver.com/whitepolarbear/221414744015

 

B. USB 없는 버젼

1. Shift 다시시작.

 

2. 고급 옵션 선택 -> Shif+F10 (BIOS 따라 되는 경우가 있고 안 되는 경우가  있음).

 

3. A.2 ~ A.4 실행.  

 

None 부팅 USB 버젼 참고 : https://jdh5202.tistory.com/548

 

 

 

리눅스

더보기

 1. GNU GRUB 2.04 부팅메뉴 띄우기

보통은 자동으로 뜬다지만 안 뜰 경우, 스타일을 수정해야함.

부팅 시 ESC 연타하다보면 grub 커멘드 창으로 이동 되는데, TIMEOUT 설정 후 재부팅이 필요하다.

grub> timeout_style=menu

 

2. root 부팅

메뉴에서 e key 누른다 -> Ubuntu 부팅 옵션 수정 -> 'ro ***'을 'rw init=/bin/bash'로 수정 ->  F10

< Ubuntu 부팅옵션 >
	...
	rw init=/bin/bash
	...

부팅 방법 참조: https://www.layerstack.com/resources/tutorials/Resetting-root-password-for-Linux-Cloud-Servers-by-booting-into-Single-User-Mode#Debian&Ubuntu

 

3. passwd 명령어로 변경(passwd 계정명)

:/# passwd user01 // passwd 계정명
Changing password for user user01
New password:
Retype password:
passwd: all authentication tokens updated sucessfully.
:/#

명령어 모음 참조:https://muagi.tistory.com/36

 

4. 앞의 2번 과정에서 'ro init=...' 로 부팅한 경우 passwd 수정 명령 시 에러(authentication token manipulation error)가 발생하면 마운트를 RW(ReadWrite)로 다시 해야한다. 
마운트 관련- https://linuxconfig.org/ubuntu-20-04-reset-root-password

호스트관련- https://www.psychz.net/client/question/en/sudo-unable-to-resolve-host.html

 

5.재부팅

:/# reboot -f

 

6. 기타

리눅스 passwd 파일 구조 참조: https://zetawiki.com/wiki/%EB%A6%AC%EB%88%85%EC%8A%A4_%ED%8C%A8%EC%8A%A4%EC%9B%8C%EB%93%9C_%ED%8C%8C%EC%9D%BC_/etc/passwd

 

'TroubleShooting' 카테고리의 다른 글

Install Jupyter-Notebook on AWS EC2 server.  (0) 2022.10.12
Unreal AR with Android  (0) 2022.06.07
웹 앱 호스팅  (0) 2022.04.29
Merge video and audio (with MediaRecorder)  (0) 2022.03.21
가상서버 설정  (0) 2022.03.15