# Principle of Least Privilege

*noun*

say it: **“PRIN-suh-pul uv LEEST PRIV-uh-lij”** **/ˈprɪnsəpəl əv ˈlist ˈprɪvəlɪdʒ/**

The rule that every account, a person's or a program's, gets only the access its job needs and nothing more.

## What is the **principle of least privilege**?

The **principle of least privilege** means every account gets only the keys its job needs. A hotel gives a guest a key to one room, not a master key. If the web server's account is broken into, the intruder can reach the website's files, not everyone's home folders.

## In a sentence

- “Running each service as its own user is the **principle of least privilege** at work.”
- “Following the **principle of least privilege**, Sam added Maya to the adm group, not to sudo.”

Level: Journeyman · [More Operating System terms at this level](https://www.ask-codey.com/glossary?category=operating-system&level=3)

Updated: November 10, 2026

Source: https://www.ask-codey.com/glossary/principle-of-least-privilege
