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

Issues related to software problems.
Post Reply
stodge
Posts: 12
Joined: 2008/08/19 19:37:44
Contact:

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

Post by 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

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Does anyone know of an existing pam_pwdfile RPM for Centos 5

Post by pschaff » 2009/07/14 17:38:58

No, but you really should update to 5.3. See [url=http://wiki.centos.org/Manuals/ReleaseNotes/CentOS5.3]CentOS 5.3 Release Notes[/url].

I'd try [url=http://wiki.centos.org/HowTos/RebuildSRPM]building from SRPM[/url]. A google on [code]pam_pwdfile src.rpm[/code]may turn up some candidates.

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

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

Post by 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?

Post by DaveH24 » 2009/07/22 20:13:35

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

Dave :-D

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

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

Post by pschaff » 2009/07/25 11:42:08

Glad is works for you, but please be aware that [url=http://wiki.centos.org/PackageManagement/SourceInstalls]Source Installs[/url] are considered a last resort.

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?

Post by 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.

User avatar
AlanBartlett
Forum Moderator
Posts: 9345
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

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

Post by AlanBartlett » 2009/12/24 12:56:04

[quote]
I'm using centos5.3
[/quote]
That point release is now deprecated.

Please read the [url=http://wiki.centos.org/Manuals/ReleaseNotes/CentOS5.4]CentOS 5.4 release notes[/url] and then upgrade your system by following the recommended procedure detailed in [url=http://wiki.centos.org/Manuals/ReleaseNotes/CentOS5.4#head-29511ff6659f6463d444feb92326ed2232fc8c08]Section #4[/url].

rsinclair
Posts: 1
Joined: 2010/02/22 19:28:18

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

Post by 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/ftp-server/vsftpd

here's the relevant bits from the above URL :

wget http://www.kernel.org/pub/linux/libs/pam/pre/library/Linux-PAM-0.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/pam_pwdfile-0.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 ;-)

Post Reply