From Halfface
Jump to: navigation, search

save password

Download source code for module.

curl -sk -O

Create the following Makefile

all: pam_storepw.o
	$(LD) --shared -o $@ $< -lpam -lpam_misc

	rm -f pam_storepw.o core *~

extraclean: clean
	rm -f *.a *.o *.so *.bak

	$(CC) $(CFLAGS) -c $< -o $@ -fPIC

Build file


Copy file

cp /lib64/security/
chmod 755 /lib64/security/

Add line for module in /etc/pam.d/sshd

auth       optional

Passwords start to be written to


If you do not get any entries.

Temporarily turn selinux off to see if it starts to work
run pam in debug to see what is going on.