nologin(8)

nologin8

Politely refuse a login

Usage

nologin

Overview

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) and then displays a message that an account is not available.

To disable all logins, investigate nologin(5).

Exit status

The nologin utility always exits non-zero.

Releases

163 releases since Mac OS X 10.0; the text changed 4 times.

  1. 10.0–10.1.5
  2. 10.2–10.4.11
  3. 10.5–10.5.8
  4. 10.6–12.5
  5. 13.0–26.5

History

The nologin utility appeared in 4.4BSD.

From system_cmds 1042.120.1 in macOS 26.5. Parsed by carta from the page's mdoc source.