Computer foundationsUnit 4 of 4
Beginner18 minIn reviewTranslation in review

Processes, services and identity

See how the operating system keeps work running and decides which identity and permissions it receives.

What you will learn
  • Distinguish an interactive process from a service managed in the background.
  • Explain why user identity and permissions affect what a process can access.
Know this first
  • Computer
  • Process
  • File
  • Filesystem
Start this unit
Last verifiedReview every 365 days
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:

  1. Is the program installed?
  2. Is a process currently running?
  3. Which identity runs it?
  4. Which resource is it trying to access?
  5. 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 commands

You can now distinguish stored programs, running processes and managed services; next learn how a shell starts and observes work.