Child pages
  • 802.1X secured wifi installation

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


This script reads the following environment variables:


PAM_USERThe system user for whom the PAM operation is running
PAM_AUTHTOKThe user's password (in case of a password change operation, the new password)
PAM_SERVICEThe service that invoked PAM (e.g. sshd when the user is attempting to log in through SSH)

This script checks, first, if it is running as root or not (the PAM stack does not necessary run as root, but as the user as which the service that invoked it is running). If it is, it proceeds to encrypt the user's password (${PAM_AUTHTOK}) and update it in the 'value' column of the 'radcheck' table in the 'radius' MySQL database


Replication of production setup