After making changes to the configuration, restart the Samba services to apply the changes: sudo systemctl restart smbd sudo systemctl restart nmbd