[Linux] UID, GID

UID

(User Identifier) - user ID를 뜻함.

유닉스 계열에서의 사용자 식별 번호. 수퍼유저(root) 의 UID는 0이다.


GID

(Group Identifier) - group ID를 뜻함.

유닉스 계열의 그룹 식별 번호. 수퍼유저(root)의 GID는 0이다.


확인하는 방법

$ cat /etc/passwd

root:x:0:0:root:/root:/bin/bash
newuser:x:1000:1000::/home/newuser:/bin/bash
...(생략)

$ cat /etc/group

root:x:0:
newuser:x:1000:
...(생략)


Comments