if the home directory is on an NFS storage with KRB5 auth, then root is usually not allowed to act there but the authorized user might be able to do that. https://git.samba.org/?p=metze/samba/wip.git;a=commitdiff;h=2b5d917e1a1d17b269bb053354ee47980c02a4a5 Contains a patch for that, which introduces a mkhomedir_as_user setting. This needs testing, if you have such a setup, feel free to test this and give feedback here.