LinuxQuestions.org
Visit the LQ Articles and Editorials section
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, 01: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, 02: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, 02: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, 03: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, 03:22 AM   #5
Air-Global
Member
 
Registered: Dec 2012
Location: Holland
Distribution: Fedora 18 & CentOS 6.3
Posts: 59

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, 11: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 11:40 AM. Reason: Censoring information
 
Old 12-08-2012, 11: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, 01: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 01:19 PM. Reason: Adding information
 
Old 12-08-2012, 02: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 02:45 PM.
 
Old 12-08-2012, 05:27 PM   #10
Air-Global
Member
 
Registered: Dec 2012
Location: Holland
Distribution: Fedora 18 & CentOS 6.3
Posts: 59

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 Images
File Type: jpg AdvancedSharingSettings.jpg (179.3 KB, 30 views)
 
Old 07-18-2013, 11: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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 12:31 PM
Samba - Windows client cannot connect to Linux Server. nathacof Linux - Server 6 04-18-2008 03:45 PM
SAMBA SERVER On UBUNTU 7.04 & Windows Client charbel Linux - Newbie 0 09-26-2007 03: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 10:16 AM
Windows 98 client won't connect to Samba shares ehedman Linux - Software 1 02-26-2004 08:41 PM


All times are GMT -5. The time now is 08:32 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration