fbtab(5)

fbtab5

Change device protection upon login

Overview

The fbtab file contains lines which specify how the permissions and ownership of various system files should be changed based on the user's login device name.

Comments start with a ‘#’ and extend to the end of the line. Blank lines or lines with only a comment are ignored.

All other lines consist of three fields delimited by whitespace.

Login Device

The device you have logged in on (e.g., “/dev/ttyv0”).

File Permission

An octal permission number (0600), as used by chmod(2).

Other devices

The final field is a colon (‘:’) delimited list of device paths (e.g., “/dev/console:/dev/fd0a:/dev/wskbd*”). Device paths may include shell-style globbing patterns (see glob(7)), potentially matching multiple devices.

The fbtab file is used by login(1) to chown(2) the specified files to the user who has performed a login. Additionally, chmod(2) is used to set the devices to the specified permission. When a user logs out, init(8) is responsible for performing the inverse operation, which results in the files once again belonging to root.

Files

/etc/fbtab

Releases

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

  1. 2.1–2.3
  2. 2.4
  3. 2.5
  4. 2.6
  5. 2.7
  6. 2.8
  7. 2.9
  8. 3.0–3.2
  9. 3.3
  10. 3.4–4.1
  11. 4.2–5.6
  12. 5.7–7.1
  13. 7.2–8.0

Authors

Guido van Rooij

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