I tried to reproduce the problem without success. This is my procedure:
- created “third.user” on NS7 with Samba4 DC (gdev2.neth.eu), set password
- from a domain workstation (win10) logged in as “third.user”, domain “neth.eu”
- connected to
\\gdev2\third.user@neth.eu
In gdev2 /var/log/messages:
Nov 17 16:20:53 gdev2 smbd[4320]: pam_unix(samba:session): session opened for user third.user@neth.eu by (uid=0)
The home dir was created during PAM login for third.user, under /var/lib/nethserver/home/third.user
.
The su - ...
is not required!