How should service accounts be created and governed?
IntermediateProductionUser Lifecycle, Auditing & Time Sync
Answer
One account per service, system UID range, no login shell, no password, home under /var/lib/<svc> or none, owning only its own files, and least-privilege sudo (ideally none). Prefer systemd DynamicUser= where possible. Track owner and purpose in config management, and review periodically for unused accounts.
sudo useradd -r -s /usr/sbin/nologin -d /var/lib/orders -M orders
More on User Lifecycle, Auditing & Time Sync
How do you manage Linux users across hundreds of servers?BeginnerWhat is SSSD?IntermediateWhat should happen in the offboarding process for an engineer with server access?IntermediateHow do you safely remove a local user?BeginnerHow do you review who has access to a server?IntermediateWhat is auditd and what is it used for?Beginner