shells(5)

shells5

Shell database

Overview

The shells file contains a list of valid shells available on the system. A shell is a command line interpreter that reads user input and executes commands. For each shell a single line should be present, consisting of the shell's path, relative to root.

A hash mark (‘#’) indicates the beginning of a comment; subsequent characters up to the end of the line are not interpreted by the routines which search the file. Blank lines are also ignored.

The chpass(1) program will not let regular users change their default shell to one not listed in the shells file. The ftpd(8) daemon denies access to users who are not using one of the listed shells.

Files

/etc/shells

Releases

61 releases since OpenBSD 2.1; the text changed 6 times.

  1. 2.1–2.4
  2. 2.5
  3. 2.6
  4. 2.7–3.1
  5. 3.2–3.3
  6. 3.4–4.1
  7. 4.2–8.0

History

The shells file format appeared in 4.3BSD-tahoe.

From man 8.0-current-20261101 in OpenBSD 8.0-current (2026-11-01). Parsed by carta from the page's mdoc source.