Skip to content

Instantly share code, notes, and snippets.

@soyfrien
Created October 16, 2018 13:11
Show Gist options
  • Save soyfrien/330fa25f6c4369e624e3a975e9013c0e to your computer and use it in GitHub Desktop.
Save soyfrien/330fa25f6c4369e624e3a975e9013c0e to your computer and use it in GitHub Desktop.
#/bin/bash
systemctl stop smbd.service winbind.service nmbd.service
net cache flush
rm -rf /var/lib/samba/*.tdb
rm -rf /var/lib/samba/group_mapping.ldb
systemctl start smbd.service winbind.service nmbd.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment