apt install realmd samba winbindhostname -fhostnamectl hostname smb.example.comrealm discover ad.example.comrealm join -v –membership-software=samba –client-software=winbind -U domain_admin ad.example.com/etc/ssh/sshd_config and set PasswordAuthentication no
/etc/nsswitch.conf and set the passwd and group options: passwd: files systemd winbind group: files systemd winbind
getent passwd example.com\\someuser/etc/samba/smb.conf and change these options: template homedir = /mnt/samba/home/%U@%D winbind use default domain = yes [FDZ] path = /mnt/samba/fdz comment = Datensaetze writable = yes guest ok = no
smbcontrol smbd reload-config