Server
Ubuntu 계정 생성 및 확인
leta
2022. 10. 7. 16:23
우분투 일반 사용자 계정 추가
$ sudo adduser [사용할 아이디]
생성된 계정 확인
$ /etc/passwd
로그인
$ su [아이디]
root 계정으로 로그인
$ su
로그아웃
$ exit
전체 목록 확인
$ cat /etc/passwd
useradd를 통해 등록된 계정만 보기
$ grep /bin/bash /etc/passwd
or
$ grep /bin/bash /etc/passwd | cut -f1 -d: #아이디만 보여줌
https://kbs4674.tistory.com/134