Having random file access problems with your CIFS share? The error I was specifically seeing was from Apache: “Cannot allocate memory: file permissions deny server access”. Luckily the solution to this is easy and doesn’t even require a restart!

If you’re not comfortable modifying the registry, this isn’t for you.

Open up the registry and find “HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanmanServer\ Parameters\Size”. Change the value to 3 (Decimal). This allows for maximum throughput for file shares.

Then open up an Administrator command window and type “net stop srv”. Hit “Y” at the prompts to stop other services and then type “net start srv”. You will have to unmount and remount your Linux share, but otherwise, everything should be fine!