#author("2020-04-20T11:24:52+00:00","default:haikikyou","haikikyou")
[[moritetuのIT関連技術メモ]]
作成済みのユーザに対してホームディレクトリを作成する。
#geshi(bash){{{
mkhomedir_helper {user} [umask [ path-to-skel ]]
}}}
&code(){pam_mkhomedir}; moduleのヘルパーとなっている。~
- &code(){path-to-skel};のデフォルトは、&code(){/etc/skel};となっている。~
- umaskのデフォルトは、&code(){0022};である。
- すでにホームディレクトリが存在する場合は、何も行われず処理成功とみなされる。
&label(link){URL};
- http://man7.org/linux/man-pages/man8/mkhomedir_helper.8.html
- https://github.com/linux-pam/linux-pam/tree/master/modules/pam_mkhomedir