LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   [SOLVED] Samba file shares & Security: WinXP connects, Win7 fails (https://www.linuxquestions.org/questions/linux-server-73/%5Bsolved%5D-samba-file-shares-and-security-winxp-connects-win7-fails-4175442204/)

ShadowCat8 12-19-2012 03:14 PM

[SOLVED] Samba file shares & Security: WinXP connects, Win7 fails
 
Greetings,

I encountered this problem with a client's network and thought it would be a good idea to share this info since it doesn't seem to be on the 'net anywhere. The client in question has a network that is *VERY* secure. Even their VPN has a 40-minute connection timeout.

So, I configured Samba to be secure as well by making sure that every share had browseable = no and even added the following to the end of the smb.conf:
Code:

[IPC$]
        hosts allow = 127.0.0.1
        hosts deny = 0.0.0.0/0
        browseable = no

That kills the IPC$ "share" from being accessible from outside the server.

WELL... this, in turn, kills Windows 7 authentication to any of the file shares on the server. Windows XP can connect just fine, but Win7 will keep giving you the dreaded "Error 5: Access is denied" error. Commenting it out (and restarting samba, if necessary) allows Win7 to authenticate and connect to the file shares.

This was with Samba-3.6.9.

Hope this helps others before they go bald pulling their hair out. ;)

EricTRA 01-05-2013 03:18 AM

Hi,

Thank you for sharing and marking the thread as solved. Off the Zero Reply List.

Kind regards,

Eric


All times are GMT -5. The time now is 10:52 AM.