728x90
사용자 계정 관리
계정 추가 명령어
사용자 추가(useradd / adduser)
CentOS / RockyLinux 에서는 useradd 와 adduser 명령어의 차이가 없다.
Ubuntu에서는 두 명령어의 차이가 존재해서 다음에 알아보도록 하겠다.
[root@estar987_LocalPC ~]# useradd testuser
[root@estar987_LocalPC ~]#
[root@estar987_LocalPC ~]# cat /etc/passwd | grep 10
games:x:12:100:games:/usr/games:/sbin/nologin
qemu:x:107:107:qemu user:/:/sbin/nologin
estar987:x:1000:1000:estar987:/home/estar987:/bin/bash
testuser:x:1001:1002::/home/testuser:/bin/bash
[root@estar987_LocalPC ~]# adduser testuser1
[root@estar987_LocalPC ~]#
[root@estar987_LocalPC ~]# cat /etc/passwd | grep 10
games:x:12:100:games:/usr/games:/sbin/nologin
qemu:x:107:107:qemu user:/:/sbin/nologin
estar987:x:1000:1000:estar987:/home/estar987:/bin/bash
testuser:x:1001:1002::/home/testuser:/bin/bash
testuser1:x:1002:1003::/home/testuser1:/bin/bash
사용자명 비밀번호 UID GID 사용자 계정 설명 홈 디렉터리 셀
testuser | X | 1001 | 1002 | /home/testuser | /bin/bash | |
testuser1 | X | 1002 | 1003 | /home/testuser1 | /bin/bash |
'OS > Linux' 카테고리의 다른 글
SU vs SU - (0) | 2024.02.15 |
---|---|
계정관리(사용자 추가 옵션)(1) (0) | 2024.02.13 |
계정 관리하기 (2) (0) | 2024.02.13 |
계정 관리하기(1) (0) | 2024.02.13 |
RPM (0) | 2023.12.28 |