summaryrefslogtreecommitdiff
path: root/oddjob-mkhomedir-0.0.1/README-oddjob-mkhomedir.md
blob: c454a3d8c16a84452116872e3602996ddc4daf7e (plain)
1
2
3
4
5
6
7
# Introduction
This oddjob-mkhomedir-0.0.1 directory is a dummy, which is designed to be installed on a Devuan system so you can install freeipa-client.
This is the "source" contents that will be used to build a dpkg from the oddjob-mkhomedir/ directory in this same source tree.

To actually make home directories upon user first login:

    tf=/etc/pam.d/common-session ; ! grep -q 'mkhomedir' "${tf}" && { thisline="$(( $( grep -nE 'session\s+optional' "${tf}" | head -n1 | awk -F':' '{print $1}' ) - 0 ))" ; awk -v thisline="$thisline" 'NR == (thisline) {print "session optional        pam_mkhomedir.so"; } {print;}' "${tf}" > "${tf}.2" ; test -f "${tf}.2" && mv "${tf}.2" "${tf}" ; }
bgstack15