LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-07-2012, 12:50 PM   #1
809areacode
LQ Newbie
 
Registered: Aug 2011
Location: Godthåb, Grønland
Distribution: Debian
Posts: 28

Rep: Reputation: Disabled
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.
 
Old 12-07-2012, 01:34 PM   #2
posix04
Member
 
Registered: Dec 2012
Posts: 32

Rep: Reputation: Disabled
Can you ping the Pc-Ubuntu from the Pc-Windows7?
 
Old 12-07-2012, 01:55 PM   #3
809areacode
LQ Newbie
 
Registered: Aug 2011
Location: Godthåb, Grønland
Distribution: Debian
Posts: 28

Original Poster
Rep: Reputation: Disabled
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.
 
Old 12-07-2012, 02:38 PM   #4
posix04
Member
 
Registered: Dec 2012
Posts: 32

Rep: Reputation: Disabled
Try to set security from user to share and restart samba. Now, does it work?
 
Old 12-08-2012, 02:22 AM   #5
Air-Global
Member
 
Registered: Dec 2012
Location: The Netherlands
Distribution: Fedora 27 & CentOS 7
Posts: 62

Rep: Reputation: 8
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.
 
Old 12-08-2012, 10:40 AM   #6
809areacode
LQ Newbie
 
Registered: Aug 2011
Location: Godthåb, Grønland
Distribution: Debian
Posts: 28

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Air-Global View Post
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.

Last edited by 809areacode; 12-08-2012 at 10:40 AM. Reason: Censoring information
 
Old 12-08-2012, 10:56 AM   #7
posix04
Member
 
Registered: Dec 2012
Posts: 32

Rep: Reputation: Disabled
Look at this link:
http://ubuntuforums.org/showthread.php?t=1607610
It sounds there are some bugs related to Windows Live Messenger and Samba.
 
Old 12-08-2012, 12:16 PM   #8
809areacode
LQ Newbie
 
Registered: Aug 2011
Location: Godthåb, Grønland
Distribution: Debian
Posts: 28

Original Poster
Rep: Reputation: Disabled
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.

Last edited by 809areacode; 12-08-2012 at 12:19 PM. Reason: Adding information
 
Old 12-08-2012, 01:35 PM   #9
posix04
Member
 
Registered: Dec 2012
Posts: 32

Rep: Reputation: Disabled
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.

Last edited by posix04; 12-08-2012 at 01:45 PM.
 
Old 12-08-2012, 04:27 PM   #10
Air-Global
Member
 
Registered: Dec 2012
Location: The Netherlands
Distribution: Fedora 27 & CentOS 7
Posts: 62

Rep: Reputation: 8
Quote:
Originally Posted by 809areacode View Post
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)
Attached Thumbnails
Click image for larger version

Name:	AdvancedSharingSettings.jpg
Views:	1534
Size:	179.3 KB
ID:	11372  
 
Old 07-18-2013, 10:07 PM   #11
809areacode
LQ Newbie
 
Registered: Aug 2011
Location: Godthåb, Grønland
Distribution: Debian
Posts: 28

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Air-Global View Post
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...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to connect with Remotedesktop client (Ubuntu 2 Windows) Beekman Linux - Newbie 1 08-14-2010 11:31 AM
Samba - Windows client cannot connect to Linux Server. nathacof Linux - Server 6 04-18-2008 02:45 PM
SAMBA SERVER On UBUNTU 7.04 & Windows Client charbel Linux - Newbie 0 09-26-2007 02:02 AM
SuSE 9.1 won't connect through Windows XP ICS and Samba client doesn't work papa Strumpf Linux - Networking 0 08-21-2004 09:16 AM
Windows 98 client won't connect to Samba shares ehedman Linux - Software 1 02-26-2004 07:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration