대학강의정리/22.2 컴퓨터네트워크

우분투에서 사용자 계정을 다시 만들고 기본 사용자로 설정하기

피스타0204 2022. 11. 11. 15:50

저 같은 경우에는 sudo 권한을 가지고 있던 기본 사용자 계정의 비밀번호를 잊어버리고 복구하던 중 계정이 날아가는 문제가 발생했습니다.

(아래는 wsl 비밀번호 찾기)

https://j2doll.tistory.com/680

그래서 우선 ubuntu 창에서 adduser [계정이름] 을 입력,

계정을 만들고

 

root 계정에서

sudo gpasswd -a domdomi admin 를 입력하였습니다.

https://domdom.tistory.com/entry/Ubuntu-%EB%A6%AC%EB%88%85%EC%8A%A4%EC%97%90%EC%84%9C-is-not-in-the-sudoers-file-This-incident-will-be-reported-%EB%AC%B8%EC%A0%9C-%ED%95%B4%EA%B2%B0-%EB%B0%A9%EB%B2%95

 

[Ubuntu] 리눅스에서 ... is not in the sudoers file. This incident will be reported. 문제 해결 방법

저는 domdomi 라는 계정으로 sudo 명령을 사용하고 싶었습니다. 하지만 ... is not in the sudoers file. This incident will be reported. 해당 문제는 domdomi 라는 계정이 sudoers 에 포함되지 않아서 그런 것인데요. 그

domdom.tistory.com

 

그리고 cmd 창으로 돌아와 

ubuntu config --default-user [계정이름]을 입력하면 처음 설치했을 때처럼 사용할 수 있습니다.

https://webdir.tistory.com/543