LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Windows 7 Client Cannot Connect to Samba 3.6.3 on Ubuntu (https://www.linuxquestions.org/questions/linux-server-73/windows-7-client-cannot-connect-to-samba-3-6-3-on-ubuntu-4175440474/)

809areacode 12-07-2012 12:50 PM

Windows 7 Client Cannot Connect to Samba 3.6.3 on Ubuntu
 
Hello, I am running Samba 3.6.3 on Ubuntu 12.04 to act as a sort of local file server here at home. Please review the configuration file below:

Code:

[global]
workgroup = test
server string = %h server (Samba, Ubuntu)
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 100
syslog = 0
panic action = /usr/share/samba/panic-action %d
security = user
encrypt passwords = yes
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
password program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n
*password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user
usershare allow guests = yes

[testshare]
comment = test share
browseable = yes
path = /testshare
read only = no
guest ok = no

create mask = 0700
directory mask = 0700
valid users = %S # I have tried commenting this

I have created local users testA and testB and added them to samba users with the smbpasswd utility. I am able to connect using these credentials with a Windows 2000 client, however when I try connecting with Windows 7 I either get "Access denied" or "the network name was not found."

Any help would be appreciated.

posix04 12-07-2012 01:34 PM

Can you ping the Pc-Ubuntu from the Pc-Windows7?

809areacode 12-07-2012 01:55 PM

Quote:

Can you ping the Pc-Ubuntu from the Pc-Windows7?
Yes, both the IP and netBIOS name work. I am also able to view the available shares, it's when I try to connect that I encounter issues.

posix04 12-07-2012 02:38 PM

Try to set security from user to share and restart samba. Now, does it work?

Air-Global 12-08-2012 02:22 AM

Are you loggin in with already existing users? if so:
Try using a login name and password in only lowercase.
I have noticed issues before with Win7 and SMB with upper&lowercase usernames&passwords.
Besides that, i would say make sure that the "Home network groups" (no clue what this is in english) of Microsoft are off! Windows will not connect to a SMB if they are on.

809areacode 12-08-2012 10:40 AM

Quote:

Originally Posted by Air-Global (Post 4845012)
Besides that, i would say make sure that the "Home network groups" (no clue what this is in english) of Microsoft are off! Windows will not connect to a SMB if they are on.

Where will I find this setting?

Quote:

Try to set security from user to share and restart samba. Now, does it work?
I have tried this to no avail. Here is the output from my Windows 7 command prompt - I am not mistyping the password.

Code:


C:\Users\anonymous>net use q: \\testbox\testshare
The password is invalid for \\testbox\testshare.

Enter the user name for 'testbox': anon
Enter the password for testbox:
System error 86 has occurred.

The specified network password is not correct.


C:\Users\anonymous>

Thanks for the support, guys. Your help is appreciated.

posix04 12-08-2012 10:56 AM

Look at this link:
http://ubuntuforums.org/showthread.php?t=1607610
It sounds there are some bugs related to Windows Live Messenger and Samba.

809areacode 12-08-2012 12:16 PM

I do not have Windows Live Messenger installed.

I was able to connect to the share with security = share, but after rebooting the server I continue to get access denied or cannot find the network resource errors.

-- Additional info

I now continue to receive this error

Multiple connections to a server or shared resource by the same user, using more
than one user name, are not allowed. Disconnect all previous connections to the
server or shared resource and try again.

posix04 12-08-2012 01:35 PM

In Windows 7, when you get that mistake, use the net use command to have a view of the existing connections and take the output here.

Air-Global 12-08-2012 04:27 PM

1 Attachment(s)
Quote:

Originally Posted by 809areacode (Post 4845220)
Where will I find this setting?

Network Center > Advanced Sharing Settings > Set Home Group Connections (bottom option normally) > use user accounts and passwords to connect
(see the attachment, retrieved from TechPowerUp.org)

809areacode 07-18-2013 10:07 PM

Quote:

Originally Posted by Air-Global (Post 4845382)
Network Center > Advanced Sharing Settings > Set Home Group Connections (bottom option normally) > use user accounts and passwords to connect
(see the attachment, retrieved from TechPowerUp.org)

This worked, thanks.

Sorry to mark this solved so late...


All times are GMT -5. The time now is 05:29 PM.