Processes, services and identity
See how the operating system keeps work running and decides which identity and permissions it receives.
- Distinguish an interactive process from a service managed in the background.
- Explain why user identity and permissions affect what a process can access.
- Computer
- Process
- File
- Filesystem
On this page
From a program to running work
When the operating system starts a program, it creates a process: a running instance with a process identifier, memory and other state. The process also runs under an identity. That identity helps the operating system decide which files, devices and other processes it may use.
What makes a service different?
A service is work intended to remain available without a person continuously operating it. A web server, DNS resolver or update agent may run as a service. A service manager can start it during boot, stop it in an ordered way and start it again after a configured failure.
“Service” describes an operational role. While it runs, the operating system still represents its work with one or more processes.
User, group and permission
- A user identity names the account context for the process.
- A group collects identities for access decisions.
- A permission allows or denies an operation such as reading or changing a file.
Security consequence: a vulnerable service running with broad permissions can affect more resources than the same service running with only the access it needs.
Observe before changing
When diagnosing a service, separate these questions:
- Is the program installed?
- Is a process currently running?
- Which identity runs it?
- Which resource is it trying to access?
- Which evidence shows success or failure?
Do not change permissions merely to make an error disappear. That can hide the cause and create a larger security problem.
Mini challenge
Imagine a print service. Name the stored program, its running process, the identity it could use and two resources it may need. Then name one resource it should not need.
Next stepContinue to Terminal and commandsYou can now distinguish stored programs, running processes and managed services; next learn how a shell starts and observes work.
Recommended next topic
Terminal and commands →
Why this comes nextTerminal, shell, command, current directory and the first safe filesystem observations.