User Tools

Site Tools


redhat_centos_making_oddjob-mkhomedir_working

Centos/RedHat: Making oddjob-mkhomedir work for services of which authconfig isn't aware:

Example etx service (Exceed Opentext Turbo X server)

# vi /etc/pam.d/etx-mkhomedir.sh

#!/bin/sh
dbus-send --system --dest=com.redhat.oddjob_mkhomedir --print-reply / com.redhat.oddjob_mkhomedir.mkhomedirfor string:"$PAM_USER"

# chmod +x /etc/pam.d/etx-mkhomedir.sh

# vi /etc/pam.d/exceed-connection-node

auth		include  system-auth
account		include  system-auth
account		optional pam_exec.so /etc/pam.d/etx-mkhomedir.sh

enjoy :)

redhat_centos_making_oddjob-mkhomedir_working.txt · Last modified: 2017/09/26 09:07 by admin