GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
* Sign Up! *

Support
Customer Portal
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
PAM_WORKER(8) FreeBSD System Manager's Manual PAM_WORKER(8)

pam_workerPAM authentication helper for use with pam_exec(8)

pam_worker profile

The pam_worker utility is a helper program designed to perform PAM (Pluggable Authentication Modules) authentication for a given profile. It is intended to be used in combination with pam_exec(8) to allow non-setuid programs to perform authentication.

pam_worker is installed with the setuid bit set, which allows it to perform privileged operations required for PAM authentication. This design enables non-privileged programs to authenticate users through PAM by invoking pam_worker as a setuid helper.

The utility reads the user's password from standard input and uses it to authenticate against the specified PAM profile.

Since pam_worker is installed with the setuid bit set, it is critical to ensure proper security controls are in place:

  • pam_worker must only be invoked by trusted programs (typically via pam_exec(8))
  • The PAM profile used must be carefully configured to prevent unauthorized access
  • The pam_worker binary itself must be protected from tampering

When used with pam_exec(8), the pam_worker utility should be invoked with appropriate restrictions to prevent privilege escalation.

profile
The name of the PAM profile to use for authentication. This profile determines which authentication modules will be used.

To configure pam_worker for use with pam_exec(8):

In /etc/pam.d/system-auth:

auth required pam_exec.so return_prog_exit_status expose_authtok /usr/libexec/pam_worker login

This configuration allows the pam_exec(8) module to invoke pam_worker with the "login" PAM profile.

The pam_worker utility does not conform to any standard.

January 14, 2026 FreeBSD 15.1-RELEASE-p1

Search for    or go to Top of page |  Section 8 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.