Access Denied while trying to mount samba share on Windows 7 from Ubuntu using cifs

# mount -t cifs //homename/share -o defaults,username=<username>,password=<password> /path/to/mount/point

If this command fails with Access Denied and you are positive your credentials are correct, it may be because Windows 7 is forcing NTLMv2. To enable version 1, click on the Windows (start) button, and search for group and select Edit group policy.

Then navigate to Local Computer Policy > Computer Configuration > Windows Settings > Security Settings > Local Policies > Security Options and on the right scroll down to Network security: LAN Manager authentication level and double click it.

Change the drop-down option to Send LM & NTLM - use NTLMv2 session security if negotiated.

Now you should be able to mount your Windows 7 share using Ubuntu cifs.

References

Page Comments (Click to edit)






[Click to add or edit comments])

Please prepend comments below including a date

Design by N.Design Studio, adapted by solidGone.org (version 1.0.0)
Have a nice day.