Linux – How to empty Samba network cache on Linux server

cifslinuxpermissionssambawindows

One of our Linux servers (Debian 5) uses Windows shares mounted via cifs.

Each time, when the credentials are changing due to security policy, shares begins to be inaccessible for several hours, or until the Linux machine goes to be completely restarted.

Is there a way to flush the network passwords cache, to avoid this ? Samba restart (/etc/init.d/samba restart) doesn't do anything, the system still uses outdated credentials.

Any help will be appreciated.

Best Answer

Perhaps mount -oremount /path/to/cifs/share can help?