Ubuntu のユーザにあとからホームディレクトリを設定する方法
日本語で「Ubuntu ホームディレクトリ あとから」とググってもなぜか誰も言及してる人がいなくて、ないのか……と思ったが英語で検索してみたらあったのでメモ。
mkhomedir_helper <username>
と打てばそのユーザーのホームディレクトリがuseradd
で-m
オプションを指定した時のようにいい感じで作成されます。
参考:Ubuntu Manpage: mkhomedir_helper - Helper binary that creates home directories