diff options
Diffstat (limited to 'oddjob-mkhomedir-0.0.1')
-rw-r--r-- | oddjob-mkhomedir-0.0.1/README-oddjob-mkhomedir.md | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/oddjob-mkhomedir-0.0.1/README-oddjob-mkhomedir.md b/oddjob-mkhomedir-0.0.1/README-oddjob-mkhomedir.md new file mode 100644 index 0000000..c454a3d --- /dev/null +++ b/oddjob-mkhomedir-0.0.1/README-oddjob-mkhomedir.md @@ -0,0 +1,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}" ; } |