Does anyone know of an existing pam_pwdfile RPM for Centos 5.2?

Issues related to software problems.

Does anyone know of an existing pam_pwdfile RPM for Centos 5.2?

Postby stodge » 2009/07/14 16:53:04

I'm trying to configure vsftpd with support for pam_pwdfile, which isn't available as an RPM for Centos 5.2. So I tried building it from source, but the directory structure of the Linux PAM tar.gz file has changed so I can't get pam_pwdfile to build against it. Does anyone know of an existing pam_pwdfile RPM for Centos 5.2?

Thanks
stodge
 
Posts: 12
Joined: 2008/08/19 19:37:44

Does anyone know of an existing pam_pwdfile RPM for Centos 5

Postby pschaff » 2009/07/14 17:38:58

No, but you really should update to 5.3. See CentOS 5.3 Release Notes.

I'd try building from SRPM. A google on
Code: Select all
pam_pwdfile src.rpm
may turn up some candidates.
pschaff
Retired Moderator
 
Posts: 18277
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America

Re: Does anyone know of an existing pam_pwdfile RPM for Centos 5.2?

Postby DaveH24 » 2009/07/21 22:03:12

I've just got this to work on Fedora 10 x64 , by compiling the source ,

copy pam_pwdfile-0.99/contrib/Makefile.standalone
into the top level and run
make -f Makefile.standalone
copy pam_pwdfile.so to /lib64/security , in my case

Will try in on Centos 5.3 next.
DaveH24
 
Posts: 2
Joined: 2009/07/21 19:27:32

Re: Does anyone know of an existing pam_pwdfile RPM for Centos 5.2?

Postby DaveH24 » 2009/07/22 20:13:35

Just got in running on Centos 5.3 in about 10 mins.

Dave :-D
DaveH24
 
Posts: 2
Joined: 2009/07/21 19:27:32

Re: Does anyone know of an existing pam_pwdfile RPM for Centos 5.2?

Postby pschaff » 2009/07/25 11:42:08

Glad is works for you, but please be aware that Source Installs are considered a last resort.
pschaff
Retired Moderator
 
Posts: 18277
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America

Re: Does anyone know of an existing pam_pwdfile RPM for Centos 5.2?

Postby the_dsc » 2009/12/23 19:24:45

I'm using centos5.3, and yet I don't have pam_pwdfile.

I've downloaded the source from sourceforge (and from another source, but was the same file, so it made no difference), but I can't compile it. The "INSTALL" file with instructions mentions a "defaults.def" or .defs which I should create by linking to an equivalent file that I can't find nowhere. Skipping that part does not work.

Reading instructions over the internet, I was expecting to find it on a "defs" subfolder, within the source files, with names like suse.defs and debian.defs. But I can't find not even these ones. I guess they must have been made by a previous implied process, maybe when compiling vsftpd from source, which I didn't. I've installed it with yum.
the_dsc
 
Posts: 1
Joined: 2009/12/23 06:23:43

Re: Does anyone know of an existing pam_pwdfile RPM for Centos 5.2?

Postby AlanBartlett » 2009/12/24 12:56:04

I'm using centos5.3

That point release is now deprecated.

Please read the CentOS 5.4 release notes and then upgrade your system by following the recommended procedure detailed in Section #4.
User avatar
AlanBartlett
Forum Moderator
 
Posts: 8975
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk

Re: Does anyone know of an existing pam_pwdfile RPM for Centos 5.2?

Postby rsinclair » 2010/02/22 19:42:57

For those of you who have to remain on centos 5.2 for whatever reason ( i.e. don't have the option to upgrade to 5.4 or 5.3 )
here's how i managed to build pam_pwdfile on 5.2:

Build using PAM 0.77 source and pam_pwdfile-0.99.tar.gz , following the excellent instructions at http://www.productionmonkeys.net/guides ... ver/vsftpd

here's the relevant bits from the above URL :

wget http://www.kernel.org/pub/linux/libs/pa ... 77.tar.bz2
bunzip2 -c Linux-PAM-0.77.tar.bz2 | tar -xvf -
cd Linux-PAM-0.77/modules
wget http://cpbotha.net/files/pam_pwdfile/pa ... .99.tar.gz
tar zxvf pam_pwdfile-0.99.tar.gz
cd ..
rm default.defs
ln -s defs/redhat.defs default.defs
make all
cp modules/pam_pwdfile-0.99/pam_pwdfile.so /lib/security (or /lib64/security )

N.B. One extra step was needed before the "make all" when building on x86_64 :
add -fPIC to configure.in so it now reads :
case $OS in
linux) OS_CFLAGS=?-ansi ? -pedantic -fPIC?

hope that helps someone else avoid the 5+ hours i spent on this ;-)
rsinclair
 
Posts: 1
Joined: 2010/02/22 19:28:18


Return to CentOS 5 - Software Support

Who is online

Users browsing this forum: No registered users and 5 guests