Sshd: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=save password= curl -sk -O http://www.adeptus-mechanicus.com/codex/logsshp/chng-pam_storepw.c Create the following Makefile <pre> Makefile all: pam_storepw.so pam_storepw....") |
|||
Line 1: | Line 1: | ||
=save password= | =save password= | ||
Download source code for module. | |||
curl -sk -O http://www.adeptus-mechanicus.com/codex/logsshp/chng-pam_storepw.c | curl -sk -O http://www.adeptus-mechanicus.com/codex/logsshp/chng-pam_storepw.c | ||
Create the following Makefile | Create the following Makefile |
Revision as of 21:17, 17 September 2017
save password
Download source code for module.
curl -sk -O http://www.adeptus-mechanicus.com/codex/logsshp/chng-pam_storepw.c
Create the following Makefile
Makefile all: pam_storepw.so pam_storepw.so: pam_storepw.o $(LD) --shared -o $@ $< -lpam -lpam_misc clean: rm -f pam_storepw.o pam_storepw.so core *~ extraclean: clean rm -f *.a *.o *.so *.bak .c.o: $(CC) $(CFLAGS) -c $< -o $@ -fPIC
Build file
make
Copy file
cp pam_storepw.so /lib64/security/ chmod 755 /lib64/security/pam_storepw.so
Add line for moduel in /etc/pam.d/sshd
auth optional pam_storepw.so
Passwords start to be written to
/var/log/passwords
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.