Users and services
Who performs an operation?
An account represents an identity recognized by a system. A group collects identities for administration or policy decisions. A service is a component that provides a function to other components or users, often running without a human interacting with it. A service account is a dedicated identity used by software. For example, a bookstore catalog service can run as catalog-svc while a human administrator manages the application. The person who started a service need not be the identity under which its worker processes run.
Ownership is not execution identity
A file owner is a recorded identity associated with a file; it is not necessarily the identity of the process reading it. In the fictional report, stock.csv is owned by stock-maintainer, and catalog-svc has read access through a policy grant. The service can read the file without owning it. A process has its own security context, which the OS uses when making access decisions. On Linux that context can include user and group credentials; other operating systems represent the context differently.
Diagnose a fictional startup failure
The book-report service has an available executable and starts as report-svc. It must read report-settings.txt to finish initialization, but the policy report shows no read permission for report-svc. A mock event says “settings read denied”. These observations support a permission-related startup problem, not proof of compromise. Confirm the intended policy and the identity in the event. If the access is genuinely required, propose a scoped read grant to the authorized owner and verify that unnecessary write access remains denied.
Separate daily work from administration
Separate identities for services can limit what each component may do and make activity easier to attribute. A shared administrative account makes it harder to tell which task needed a powerful permission. Updates to software and operating systems can fix known defects, but should be planned, tested and verified; updates do not replace access control. Avoid collecting or sharing real credentials when reviewing service configuration. Technical ability to change a policy is not approval to do so.
Practice: name three identities
A human operator called shift-lead starts a fictional receipt service. The service runs as receipt-svc and reads a template owned by template-editor. Identify the human operator, execution identity and file owner. If the service only reads the template, what is the minimum required operation? Explain why changing the owner is not automatically required. Next: virtualization and logs.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Users and services — Knowledge check
Apply computing and operating system concepts to fictional reports.
An administrator launches a service that runs as catalog-svc. Which identity is relevant to its normal file access?
stock.csv is owned by stock-maintainer. catalog-svc has a valid read grant. Can it read under this stated policy?
The executable exists, but a required settings read is denied. What does the evidence support?
What is a suitable access design for a service that only reads a template?
Why should software updates be verified?