$ dscl . list /users

Why is there a user called nobody?

  • 1
  • 1
    Does nobody log in? Why does nobody log in? :) – C. Tewalt Jan 20 at 19:34
  • 1
    This is also common for other Unix-like systems, for example with NFS files are normally mapped to that user if you should not be able to control them (root squash) – eckes Jan 20 at 21:58

Those accounts are for systems processes and to restrict access to things like files and resources by group or user.

  • 3
    so user 'nobody' is a legit MACOS generated User? – roberto dulce Jan 18 at 19:21
  • 21
    Totally. Drop me your macOS build / version and I can dump the correct list for you. Nobody is everywhere, though. An ubiquitous non-account in most unixen @robertodulce – bmike Jan 18 at 19:29
  • 17
    @bmike "Nobody is everywhere" --- channeling Odysseus and the Cyclops? – Carl Witthoft Jan 19 at 14:04
  • 3
    I am a man of twists and turns and appreciate you noticing that human condition @CarlWitthoft – bmike Jan 19 at 14:34
  • 7
    @robertodulce: Most Unix and Linux systems have a nobody user; it's 100% standard for Unix systems. e.g. What is nobody user and group? / What is the purpose of the 'nobody' user?. On my Arch GNU/Linux system, it has UID=99, and shell /usr/bin/nologin. – Peter Cordes Jan 19 at 21:40

There are a lot of places in the OS where something has to be assigned to some user account. Each file and directory must be owned by some user account, every process (program) running must be running as some user account, etc. The "nobody" account serves mostly as a placeholder for files, processes, etc that don't really belong to any "real" account (even one of the other system accounts in the list).

Essentially, the "nobody" account serves as a way to restrict permissions and access to/from things that don't really belong to any "real" account.

It's also not unique to macOS at all; you'll find it (or an equivalent) on any unix/linux system, and probably many other OSes I'm less familiar with.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .