Errors on 64-bit Ubuntu Linux
Posted by Sven Koester, Last modified by Sven Koester on 16 May 2014 16:58

It has been reported to our hotline that a PAM-related problem may arise on 64 Bit Ubuntu Linux installations.

The reason is that PresSTORE supports PAM, the Pluggable Authentication Module. But PresSTORE is a 32 bit application and thus requires the 32-bit versions of the PAM modules. These modules have not been included in the Ubuntu 64 bit distribution.

A customer reported that this could be patched by adding the 32Bit shared objects and modifying the configuration:
# cd /tmp
# wget [old link removed] (old link)
# wget [old link removed]
# dpkg -i getlibs-all.deb

# getlibs -32 pam_unix.so
# getlibs -32 libselinux.so.1
# getlibs -32 libsepol.so.1

The PresSTORE PAM Configuration in /etc/pam.d/nsd
has to be modified to use  the 32 bit shared objects:

# PresStore installation: Mi 3. Dez 15:32:00 CET 2008
auth    required        /lib32/security/pam_unix.so
account required        /lib32/security/pam_unix.so


Update:

On Ubuntu 12.4, the organisation for 32 bit libraries has changed.On newly installed Ubuntu 12.4 system, please execute:

apt-get install ia32-libs-multiarch
apt-get install libpam-ldap:i386
apt-get install libpam-modules:i386

Then edit the PAM Configuration in /etc/pam.d/nsd file and add the path for the 32bit version of the changed libraries. Please note that the path may differ, please check where the 32 bit version of file pam_unix.so resides on your system.

Update:

On Ubuntu 14, the organisation for 32 bit libraries has changed - again. On newly installed Ubuntu 14.04 system, please execute:

sudo dpkg --add-architecture i386
sudo apt-get update

apt-get install libpam-ldap:i386
apt-get install libpam-modules:i386
apt-get install libacl1:i386

Then edit the PAM Configuration in /etc/pam.d/nsd file and add the path for the 32bit version of the changed libraries. Please note that the path may differ, please check where the 32 bit version of file pam_unix.so resides on your system.

keywords: missing linux 32bit 32-bit 64bit 64-bit

(349 vote(s))
Helpful
Not helpful

Comments (6)
Luke Jaeger
22 November 2011 15:35
YES! IT WORKS!!
To install a .deb file on Ubuntu, you need the gdebi package installer:
# sudo apt-get install gdebi
Johannes Henkel
12 January 2012 14:02
Working download: http://frozenfox.freehostia.com/cappy/getlibs-all.deb

the libs get installed in /lib32/i386-linux-gnu/security and need to get copied to /lib32/security/

after restarting AW authentication works fine
Stephan Diehl
18 April 2012 14:38
Or simply install "ia32-libs" (sudo apt-get install ia32-libs) and it works fine.
Stephan Diehl
24 April 2012 13:58
lib pam_unix.so is not inclodet in ia32-libs.

you need also:

wget http://security.ubuntu.com/ubuntu/pool/main/p/pam/libpam-modules_1.1.1-2ubuntu5.4_i386.deb
dpkg -x libpam-modules_1.1.1-2ubuntu5.4_i386.deb tmp
sudo cp tmp/lib/security/pam_unix.so /lib32/security

and edit the pam config like in the first post.
Luke Jaeger
29 March 2013 15:14
Some of the info in this thread is outdated and/or confusing. This is actually very easy. I just got PresSTORE 4.4.6 running on Ubuntu Server 12.04 64-bit by doing this:

1. Do a basic Ubuntu Server 12.04 64-bit installation from the live CD
2. Install all relevant patches:
sudo apt-get update
sudo apt-get upgrade
3. Install the 32-bit libs:
sudo apt-get install ia32-libs-multiarch libpam-ldap:i386 libpam-modules:i386
4. Download and install PresSTORE following the directions in the 'First Steps' manual

I didn't have to edit /etc/pam.d/nsd or add special repositories or go looking for pam_unix.so - it just worked.
Sterling Anderson
23 January 2014 19:33
In order to get the software working on Ubuntu 13.10 I had to install the following packages and their prerequisites:

libpam-ldap:i386
libpam-modules:i386
libacl1:i386

It's possible I had other packages installed already that are also required.
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).