Why Linux has been multi-user from day one

Published on 2026-09-12 by frfrand

Where do the uids, permissions, and user habits per service come from, and why that Unix design remains a free defense on your server.

Why Linux has been multi-user from day one

Short answer: Linux is multi-user because it inherits the design of Unix (1969), created for computers shared by many people at once. Each process runs with a uid, the kernel decides permissions based on that number, and that's why it's convenient for each person and each service to have their own user: if something is compromised, the damage is limited to what that user can touch.

When someone starts with Linux, permissions feel like bureaucracy. Why do I have to use sudo for everything? Why are there fifteen users I didn't create?

The answer lies in its origin. Unix, of which Linux is a direct heir, was born in 1969 in a world where a computer cost what a building costs today and was used by dozens of people at once. It wasn't a personal machine: it was a shared resource.

This forced the system to answer one question in every operation: who is requesting this?

The uid is what really matters

The system doesn't work with names, it works with numbers. Each user has an identifier, the uid, and the name is just a label for humans to read.

$ id uid=1000(deploy) gid=1000(deploy) groups=1000(deploy),27(sudo)

There is a fairly universal convention:

  • uid 0 is root. It is not "the administrator" by configuration: it is root because its uid is 0, and the kernel skips permission checks for uid 0. If you change its name, it can still do everything.
  • uid 1 to 999 are system users: services, daemons. They have no password or login shell.
  • uid 1000 onwards are people.

That is why, to know what identity you are working with, id says more than whoami: it shows the number, which is what the kernel looks at, and not just the name.

Each service with its own user

This is the habit that gives the most security and that most people break without realizing it.

In a well-built server, each service runs as a different user:

$ ps -eo user,comm | sort -u | head postgres postgres redis redis-server root systemd www-data nginx

The logic is damage containment. Suppose a vulnerability appears in nginx and someone manages to execute code through it. What do they get? The permissions of www-data, which typically are reading the site files, and little more.

They cannot read your .env, because that file belongs to deploy with permissions 600. They cannot restart services, because that requires root. They cannot query the database, because the credentials are in a file they cannot open.

The attack happened, but it stayed inside a box.

Groups are the other axis

A user belongs to a primary group and to any groups you add. Groups solve the case where "several people need the same thing".

$ usermod -aG docker deploy # deploy can now use Docker $ usermod -aG sudo deploy # deploy can now use sudo

Watch out for the "a" in that command: without it, usermod -G replaces all secondary groups instead of adding. It is one of the quickest ways to remove yourself from the sudo group and end up unable to administer the server.

And a detail that surprises: adding someone to the docker group is, in practice, giving them root. Anyone who can launch containers can mount the host's disk inside one. It's not a hole: it's how Docker works. Worth knowing before handing out that group.

A file's permissions, read all at once

$ ls -l .env -rw------- 1 deploy deploy 412 Nov 1 10:22 .env

It is read in blocks of three: the first is the owner, the second is the group, the third is everyone else. rw- for the owner, nothing for the rest. That is 600.

The numbers come from adding: read 4, write 2, execute 1. So 755 is "the owner can do everything, the rest can read and execute", which is normal for a folder or a program. And 600 is "only the owner, and not even they can execute it", which is correct for a secrets file.

A classic trap: in folders, the execute permission means "being able to enter". A folder with 644 permissions lets you see the names of what it contains, but you cannot enter it or open its files, even if those files have good permissions.

Why this is not ancient history

It might seem that on a server where you work alone all this is unnecessary. It's the opposite: it's exactly where it matters most, because there's no one else watching.

Linux's multi-user model is the only defense that is already installed, costs nothing, and works even against attacks that don't exist yet. Taking advantage of it is, almost always, not fighting against it.

In ArduMaker, every VPS is born with root and an admin user with sudo, each with a random password that is visible in the panel (for admin you are asked to change it on first login). Additional users are created by a Company Admin from the panel, with their password and, if necessary, with sudo; SSH public keys, if you use them, are loaded from the SSH Access app, which installs them for a single Linux user of the VPS. And Company Members who enter through the web terminal do so with their own Linux user, not a shared one.

A separate account for each person and service

Linux allows defining users, groups, and permissions per file. On an ArduMaker VPS, this means that a developer, an application, and a backup process do not need to share the same identity. Separating them reduces the scope of errors and makes it easier to revoke access.

Before using chmod 777 as a quick fix, check who owns the file and which process needs to read or write it. Broad permissions do not solve the underlying problem and can introduce vulnerabilities.

Related: How to create users in Linux · Why not use root for everything.

Frequently asked questions

What is the uid in Linux? The number that identifies a user. The kernel decides permissions based on that number, not the name, and uid 0 is root.

Why does each service have its own user? To contain damage: if someone exploits a flaw in nginx, they get www-data permissions, not your user's or root's.

What do 600 and 755 mean? Read is worth 4, write 2, and execute 1, and they are added for the owner, the group, and others. 600: only the owner reads and writes. 755: the owner can do everything and others read and execute.

Why is adding someone to the docker group delicate? Because whoever can launch containers can mount the host's disk inside one: in practice, it is equivalent to giving them root.

  • Linux
  • usuarios
  • permisos
  • multiusuario
  • fundamentos

Keep reading

All articles · VPS plans