What does UID root and GID root mean?
Please give me some examples...
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.
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
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.