Ir al contenido principal

Ralsina.Me — El sitio web de Roberto Alsina

RA-WebPass

The prob­lem: Your users need to change their pass­words in a lin­ux sys­tem.

The so­lu­tion: A web­page to do just that.

Re­quires:

How it work­s:

  1. You run it on the box whose pass­­words need chang­ing.

  2. Your users ac­cess http://y­our.server:8080

  3. They change their pass­­words

Con­fig­u­ra­tion:

Prob­a­bly you don't need to do any­thing. If it does­n't work right, try check­ing this piece of the scrip­t:

#################
## Configuration
#################

port=8080
chpasswd='/usr/sbin/chpasswd'
checkpassword-pam='/usr/bin/checkpassword-pam'
pam_service='xdm'

#################
## That's it
#################

If you want to change the look of the web­page, change the con­tents of the web­page vari­able in the scrip­t. It's the one that has HTML in it.

Down­load:

ra-web­pass.py

Li­cense: MIT


Contents © 2000-2020 Roberto Alsina