To configure the Samba service:
Run the following commands:
systemctl start smb
systemctl enable smb
systemctl start nmb
systemctl enable nmb
Run the following commands:
systemctl start smbd
systemctl enable smbd
systemctl start nmbd
systemctl enable nmbd
[global]
workgroup = <NetBIOS name of the Active Directory domain>
password server = <DNS name of the Active Directory domain controller>
realm = <uppercase Active Directory domain name>
security = ads
idmap uid = 10000-20000
idmap gid = 10000-20000
winbind use default domain = no
net ads join -U <domain administrator>
You will be prompted to enter the password of the domain administrator or the password of a user with domain administrator rights.
The server will be added to the Active Directory domain.
net ads testjoin
If the server has been added to the Active Directory domain, Join is OK
is displayed in the console.
systemctl start winbind
systemctl enable winbind
usermod -a -G winbindd_priv proxy
Samba configuration will be completed. Proceed to check the Samba settings.
Page top