I need to use pam_mount to mount user home directories individually at the time that each user logs in. I cant locate a package for this, at least for Centos 6. I would not have a problem building from source if this was a source based distro but because its not I would need to install gcc and all the dependences, seems like overkill.
I would expect a RHEL6/CentOS6 pam_mount package via EPEL soon.
Until then, you can cherry pick pam_mount and libHX from Fedora 12, as RHEL6 was largely based off of it.
Just grab the packages manually and do a
I went ahead and did this on one of my RHEL6 boxes, as I'm using pam_mount in a few places:
I went ahead and configured it, and it works perfectly.
Since CentOS aims for 100% binary compatibility with RHEL, it should work fine on your CentOS6 box too.
The support matrix says: It does not work right now.
It seems that you have to wait for a working release. Even installing the compiler toolchain will not help in this case.
I hope this helps someone. I downloaded the Fedora 17 SRPMS for pam_mount and LibHX, did a rpmbuild and install of LibHX, then pam_mount. The options for the pam_mount.conf.xml are limited, compared to newer OSs. My /etc/secutity/pam_mount.conf.xml mount lines are like:
I had to tweak /etc/pam.d/password-auth:
The default "sufficient" on the pam_sss lines will prevent the mounts from occurring.