Monday, October 15, 2007

Installing pam-mysql on CentOS 5.0

yum -y install pam pam-devel openssl openssl-devel mysql mysql-devel mysql-server
cd /usr/src
wget http://downloads.sourceforge.net/pam-mysql/pam_mysql-0.7RC1.tar.gz?modtime=1136835566&big_mirror=0
tar -xvzf pam_mysql-0.7RC1.tar.gz
cd pam_mysql-0.7RC1
./configure --bindir=/usr/bin --sbindir=/usr --with-openssl=/usr --with-mysql=/usr --with-pam=/usr --with-pam-mods-dir=/lib/security
make
make install

Check installed files:

ls -al /lib/security/pam_m*
-rwxr-xr-x 1 root root 8060 Mar 15 2007 /lib/security/pam_mail.so
-rwxr-xr-x 1 root root 15848 Mar 15 2007 /lib/security/pam_mkhomedir.so
-rwxr-xr-x 1 root root 3864 Mar 15 2007 /lib/security/pam_motd.so
-rwxr-xr-x 1 root root 880 Oct 16 01:18 /lib/security/pam_mysql.la
-rwxr-xr-x 1 root root 95126 Oct 16 01:18 /lib/security/pam_mysql.so

1 comment:

gsanthosh said...

This is really very useful thanks for posting...
Do you know any new version of pam_mysql ?