기록/리눅스
[리눅스] 일반 유저 계정 추가하기
코드코코
2021. 12. 23. 15:32
0. 슈퍼 유저 전환
sudo su
1. 새로운 유저 계정 추가하기
adduser <계정명>
root@DESKTOP-RJ31OF5:/home/ubuntu# adduser coco
Adding user `coco' ...
Adding new group `coco' (1001) ...
Adding new user `coco' (1001) with group `coco' ...
Creating home directory `/home/coco' ...
Copying files from `/etc/skel' ...
New password:
Retype new password:
passwd: password updated successfully
Changing the user information for coco
Enter the new value, or press ENTER for the default
Full Name []:
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n]
2. 생성된 유저 확인 해보기
- 현재 위치 / 이고, 파일 및 폴더 리스트를 보니 home 디렉토리가 보인다.

- cd 명령어를 통해 home으로 이동, ls -la 명령어를 통해 새로 생성된 유저가 확인된다.
