Error regarding pam_unix.so on 64-bit Debian Linux
Posted by Sven Koester on 30 June 2008 13:04
On 64 bit Debian Linux Systems, the 32 bit shared libraries are not installed by default
PresSTORE is a 32 bit application and requires the 32 bit libraries.
The installation is usually possible with the command:
apt-get install ia32-libs
In case that fails, please use the high level package manager instead:
aptitude install ia32-libs
nsd: PAM [dlerror: /lib/security/pam_unix.so: cannot open shared object file: No such file or directory]
To do so, please follow these steps:
1. Check on http://ftp.us.debian.org/debian/pool/main/p/pam for the latest libpam-modules*i368.deb package.
2. Download that package to a temporary space and unpack it:
dpkg -X libpam-modules_1.1.3-7.1_i386.deb pam
3. move the required libraries into the /lib32 folder:
mv pam/lib/i386-linux-gnu/security/* /lib32/security/.
rm -r pam
4. You will need to adopt the installed pam configuration of PresSTORE. Please change these lines:
auth required pam_unix.so
auth required /lib32/security/pam_unix.so
That's all, after that step login must be possible in PresSTORE, too.
IMPORTANT: When upgrading from one minor Presstore version to another (e.g. 4.4.2 to 4.4.8), it is sufficient to unpack the Presstore .tgz file into /usr/local/aw, followed by restarting Presstore. There is no need to run the installer script (install.sh). Doing so would reset the PAM configuration, logins would once again fail, and the above changes would have to be re-done in order to fix.
UPDATE: A customer has reported that with Debian 8 "Jessie" the 'ia32-libs' package is no longer available. Therefore, the following libraries will need to be installed.:
dpkg --add-architecture i386
keywords: linux shared 32bit 32-bit 64bit 64-bit missing