UID stands for user ID, and GID stands for group ID. They are numeric identifiers associated by a UNIX or Linux system with an user or group account, respectively (e.g. 0 or 5160). Systems also use human-readable users and groups for convenience (e.g. root or adm).
Users represent an individual person or role, whereas groups represent a collection of people or roles. Each is used by the system to manage who gets access to resources like files, processes, etc.
On many systems, you'll find that users and groups (confusingly) might be named the same thing, even though they have different functions. Also, some people (confusingly) use UID or GID to mean the same as user or group instead of the numeric IDs. You can find all the names and IDs, and how they are mapped to each other in files like /etc/passwd and /etc/group which you can read about in the appropriate man pages.
So, "UID root" (mistakenly) means the root user, and "GID root" (mistakenly) means the root group.
UID root says the file is owned and fully controlled by the user root.
GID root says that members of the group root can control the file as per the group permissions.
UID stands for user ID, and GID stands for group ID. They are numeric identifiers associated by a UNIX or Linux system with an user or group account, respectively (e.g.
0
or5160
). Systems also use human-readable users and groups for convenience (e.g.root
oradm
).Users represent an individual person or role, whereas groups represent a collection of people or roles. Each is used by the system to manage who gets access to resources like files, processes, etc.
On many systems, you'll find that users and groups (confusingly) might be named the same thing, even though they have different functions. Also, some people (confusingly) use UID or GID to mean the same as user or group instead of the numeric IDs. You can find all the names and IDs, and how they are mapped to each other in files like
/etc/passwd
and/etc/group
which you can read about in the appropriate man pages.So, "UID root" (mistakenly) means the root user, and "GID root" (mistakenly) means the root group.
UID root says the file is owned and fully controlled by the user root. GID root says that members of the group root can control the file as per the group permissions.