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
More on Permissions, Users & sudo
Explain the rwx permission model for files and directories.BeginnerHow does octal notation work in chmod?BeginnerWhat does chown do and who can run it?IntermediateWhat is umask and how is the final permission calculated?IntermediateWhat is SUID and give a real example?IntermediateWhat does SGID do on files versus directories?Intermediate