What is the uid of centos7 user?

WBOY
Release: 2022-04-02 11:05:20
Original
9262 people have browsed it

In centos7, you can use the id command to check the user's uid. When the parameter is set to "-u", the user uid will be output. The syntax is "id -u username"; the root user's uid is 0, while the uid of virtual users is from 1 to 1000, and the uid of ordinary users is from 1001.

What is the uid of centos7 user?

The operating environment of this article: centos 7 system, Dell G3 computer.

What is the uid of centos7 user

Using the id command can easily check the UID and GID through the user name. Let’s explain the usage of this command.

Command format:

      id  [选项]… [用户名]
Copy after login

Command options:

-a Ignore, compatible with other versions

-Z, -context Only output the security context of the current user

-g, -group Output only valid GIDs

-G, -groups Output all GIDs

-n, -name For -ugG, output names instead of numbers

-r, -real For -ugG, output the real ID instead of the valid ID

-u, -user Only output the valid UID

-help Exit after outputting help

-version Exit after outputting the version information

UID (User Identify) Chinese user ID, which is equivalent to an ID card and is unique in the system.

User classification

centos6

Super user UID=0 root

Normal user UID=500 and up oldboy

Virtual user UID=1-499 exists to meet the needs of file or service startup. Generally no need to log in; (puppet)

centos7

Super user UID=0 root

Ordinary user UID=1001 and up

Virtual user UID=1-1000 exists to meet the needs of file or service startup. Generally no login is required; (Puppet)

What is the uid of centos7 user?

Recommended tutorial: "centos tutorial"

The above is the detailed content of What is the uid of centos7 user?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template