---
name: "nologin"
section: "8"
platform: "macos"
package: "system_cmds"
version: "1042.120.1"
release: "macOS 26.5"
platforms: ["linux", "freebsd", "openbsd", "macos"]
url: "https://new.carta.tech/nologin"
---

# nologin(8)

politely refuse a login

## NAME

**nologin** – politely refuse a login

## SYNOPSIS

**nologin**

## DESCRIPTION

The **nologin** is intended as a replacement shell field for accounts that have been disabled.

When executed, **nologin** first writes about the login attempt to [syslog(3)](/syslog/3.md) and then displays a message that an account is not available.

To disable all logins, investigate [nologin(5)](/nologin/5.md).

## EXIT STATUS

The **nologin** utility always exits non-zero.

## SEE ALSO

[login(1)](/login/1.md), [nologin(5)](/nologin/5.md)

## HISTORY

The **nologin** utility appeared in 4.4BSD.
