Interview Prep/Linux/Permissions, Users & sudo

What is the difference between UID 0, system users and regular users?

IntermediateConceptPermissions, Users & sudo
Answer

UID 0 is root and bypasses permission checks. System users (UID below UID_MIN, usually 1000) run services and have no login shell (/usr/sbin/nologin). Regular users start at 1000. The ranges are defined in /etc/login.defs.

sudo useradd --system --no-create-home --shell /usr/sbin/nologin appsvc
All Linux questions Roadmap: Linux

More on Permissions, Users & sudo