User Tools

Site Tools


fileservices:samba_refreshwinbind_cache

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

fileservices:samba_refreshwinbind_cache [2018/09/13 13:26] (current)
tschulz created
Line 1: Line 1:
 +====== Refresh Winbind Cache ======
 +
 +<file bash flush_winbind.sh>​
 +#!/bin/sh
 +
 +/​etc/​init.d/​samba stop && /​etc/​init.d/​winbind stop
 +net cache flush
 +cd /​var/​lib/​samba/​
 +mkdir old && mv *.tdb old/.
 +rm -rf /​var/​cache/​samba/​* /​var/​lib/​samba/​*tdb
 +/​etc/​init.d/​samba start && /​etc/​init.d/​winbind start
 +
 +</​file>​
  
fileservices/samba_refreshwinbind_cache.txt · Last modified: 2018/09/13 13:26 by tschulz