pam_ksu(8)

pam_ksu8

Kerberos 5 su pam module

Usage

[service-name] module-type control-flag pam_ksu [options]

Overview

The Kerberos 5 SU authentication service module for PAM, pam_ksu for only one PAM category: authentication. In terms of the module-type parameter, this is the “auth” feature. The module is specifically designed to be used with the su(1) utility.

Kerberos 5 SU Authentication Module

The Kerberos 5 SU authentication component provides functions to verify the identity of a user (pam_sm_authenticate()), and determine whether or not the user is authorized to obtain the privileges of the target account. If the target account is “root”, then the Kerberos 5 principal used for authentication and authorization will be the “root” instance of the current user, e.g. “user/[email protected]”. Otherwise, the principal will simply be the current user's default principal, e.g. “[email protected]”.

The user is prompted for a password if necessary. Authorization is performed by comparing the Kerberos 5 principal with those listed in the .k5login file in the target account's home directory (e.g. /root/.k5login for root).

The following options may be passed to the authentication module:

debug

syslog(3) debugging information at LOG_DEBUG level.

use_first_pass

If the authentication module is not the first in the stack, and a previous module obtained the user's password, that password is used to authenticate the user. If this fails, the authentication module returns failure without prompting the user for a password. This option has no effect if the authentication module is the first in the stack, or if no previous modules obtained the user's password.

try_first_pass

This option is similar to the use_first_pass option, except that if the previously obtained password fails, the user is prompted for another password.

Releases

52 releases since FreeBSD 5.3-RELEASE; the text changed 34 times.

  1. 5.3–6.3
  2. 6.4
  3. 7.0
  4. 7.1
  5. 7.2
  6. 7.3
  7. 7.4
  8. 8.0
  9. 8.1
  10. 8.2
  11. 8.3
  12. 8.4
  13. 9.0
  14. 9.1
  15. 9.2
  16. 9.3
  17. 10.0
  18. 10.1
  19. 10.2
  20. 10.3
  21. 10.4
  22. 11.0
  23. 11.1
  24. 11.2
  25. 11.3
  26. 11.4
  27. 12.0
  28. 12.1
  29. 12.2
  30. 12.3
  31. 12.4
  32. 13.0–13.2
  33. 13.3–13.5
  34. 14.0–14.2
  35. 14.3–16.0

From base 16.0-CURRENT-20261027-61c70dc16a79 in FreeBSD 16.0-CURRENT (2026-10-27). Parsed by carta from the page's mdoc source.