LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-15-2011, 05:14 PM   #1
LordXzi
LQ Newbie
 
Registered: Jan 2011
Location: Reading, UK
Distribution: Ubuntu 11.10 x64
Posts: 7

Rep: Reputation: 1
Samba access no longer working in Windows 7


Hi,

I've recently been experiencing an issue connecting to my Samba shares on a Ubuntu 10.4 server box on my network from a Windows 7 client. If I use Ubuntu 10.10 on the same machine, or a Windows XP Virtual Machine running under both Windows and Linux host the share works absolutely fine.

What happens is if I browse to the hostname or the IP address I see a login prompt (there is access control) but my username and password no longer work. Before I didn't need to login as they are the same as my windows credentials.

I'm not sure what information/logs etc would be most relevant so I've posted some information, if any more is required then let me know where to find it and I'm sure I'll be able to get it.

Here is the last few days of the log when I believe it was working, there are no entries since.
Code:
[2010/12/15 12:30:05,  1] smbd/service.c:1063(make_connection_snum)
  ramuh (192.168.2.13) connect to service tom initially as user tom (uid=1000, gid=1000) (pid 2458)
[2010/12/15 12:33:05,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2010/12/15 12:33:05,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2010/12/15 12:38:43,  1] smbd/service.c:1240(close_cnum)
  ramuh (192.168.2.13) closed connection to service tom
[2010/12/15 19:25:24,  1] smbd/service.c:1063(make_connection_snum)
  ramuh (192.168.2.13) connect to service tom initially as user tom (uid=1000, gid=1000) (pid 2710)
[2010/12/15 19:28:24,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2010/12/15 19:28:24,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2010/12/15 19:37:30,  1] smbd/service.c:1240(close_cnum)
  ramuh (192.168.2.13) closed connection to service tom
[2010/12/15 20:00:27,  1] smbd/service.c:1063(make_connection_snum)
  ramuh (192.168.2.13) connect to service tom initially as user tom (uid=1000, gid=1000) (pid 1939)
[2010/12/15 20:03:27,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2010/12/15 20:03:27,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2010/12/15 20:16:27,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2010/12/15 20:16:27,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2010/12/15 20:29:28,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2010/12/15 20:29:28,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2010/12/15 20:42:28,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2010/12/15 20:42:28,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2010/12/15 20:55:29,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2010/12/15 20:55:29,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2010/12/15 21:03:48,  1] smbd/service.c:1240(close_cnum)
  ramuh (192.168.2.13) closed connection to service tom
[2010/12/15 21:03:48,  0] lib/util_sock.c:539(read_fd_with_timeout)
[2010/12/15 21:03:48,  0] lib/util_sock.c:1491(get_peer_addr_internal)
  getpeername failed. Error was Transport endpoint is not connected
  read_fd_with_timeout: client 0.0.0.0 read error = Connection reset by peer.
[2010/12/15 22:37:31,  1] smbd/service.c:1063(make_connection_snum)
  ramuh (192.168.2.13) connect to service tom initially as user tom (uid=1000, gid=1000) (pid 2975)
[2010/12/15 22:38:37,  0] smbd/nttrans.c:2123(call_nt_transact_ioctl)
  call_nt_transact_ioctl(0x1401c4): Currently not implemented.
[2010/12/15 22:40:08,  1] smbd/service.c:1063(make_connection_snum)
  ramuh (192.168.2.13) connect to service MythTV initially as user mythtv (uid=108, gid=117) (pid 2975)
[2010/12/15 22:40:31,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2010/12/15 22:40:31,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2010/12/15 22:48:31,  1] smbd/service.c:1240(close_cnum)
  ramuh (192.168.2.13) closed connection to service MythTV
[2010/12/15 22:53:31,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2010/12/15 22:53:31,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2010/12/15 23:06:31,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2010/12/15 23:06:31,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2010/12/15 23:19:32,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2010/12/15 23:19:32,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2010/12/15 23:32:32,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2010/12/15 23:32:32,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2010/12/15 23:45:33,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2010/12/15 23:45:33,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2010/12/15 23:58:33,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2010/12/15 23:58:33,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2010/12/16 00:11:34,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2010/12/16 00:11:34,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2010/12/16 00:14:33,  1] smbd/service.c:1240(close_cnum)
  ramuh (192.168.2.13) closed connection to service tom
[2010/12/16 16:24:39,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2010/12/16 16:24:39,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
Here is my smb.conf
Code:
#======================= Global Settings =======================

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


[printers]
   comment = All Printers
   browseable = no
   path = /var/spool/samba
   printable = yes
   guest ok = no
   read only = yes
   create mask = 0700

[print$]
   comment = Printer Drivers
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   guest ok = no

[MythTV]
	writeable = yes
	path = /home/mythtv
	force directory mode = 770
	force group = mythtv
	force create mode = 770
	force user = mythtv
	comment = MythTV Content Share
	valid users = tom
	create mode = 770
	directory mode = 770

[homes]
	force create mode = 750
	comment = Home Directory
	writeable = yes
	valid users = @users
	create mode = 750
	force directory mode = 750
	directory mode = 750

[Web]
	writeable = yes
	path = /home/www
	force directory mode = 770
	force group = www-data
	force create mode = 770
	force user = tom
	hide dot files = no
	comment = Web Hosting Directory Share
	valid users = tom
	create mode = 770
	directory mode = 770

[Public]
	writeable = yes
	path = /home/public
	force directory mode = 770
	force group = nogroup
	force create mode = 770
	force user = nobody
	comment = Public Share Directory
	public = yes
	create mode = 770
	directory mode = 770
Finally I have tried several of the security policies changes under Windows 7 (unfortunately I can't remember which) and this hasn't helped. The issue first happened just before Christmas so I guess either Windows or the server did an update at that time which has caused this issue.

Hopefully someone has experienced the same issue because I am unsure where to go to find the best support if this is a Windows issue.

Regards
 
Old 01-15-2011, 06:09 PM   #2
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
If it's windows7 that's not connecting, windows7 may be able to join group.
Also check /etc/host or guest allow(not sure) on server, it may have updated while your machine was not on network.

This may help you
http://samba.netfirms.com/sambconf.htm

Last edited by EDDY1; 01-15-2011 at 06:18 PM.
 
Old 01-15-2011, 07:57 PM   #3
LordXzi
LQ Newbie
 
Registered: Jan 2011
Location: Reading, UK
Distribution: Ubuntu 11.10 x64
Posts: 7

Original Poster
Rep: Reputation: 1
Hi, thanks for your response.

I'm not sure what you mean by 'windows7 may be able to join group'?

I have a public share using samba which does have guest enabled, although I am unable to access this share either it is still prompting for a username.

The text with /etc/host is:
Code:
tom@bahamut:~$ cat /etc/hosts
127.0.0.1       localhost
127.0.1.1       bahamut.cable.virginmedia.net   bahamut

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
Does that help at all?

I can't see how my config file would be the problem as this has been working perfectly for months, I'm having a look through the options but so far to no avail.

Regards
 
Old 01-15-2011, 08:09 PM   #4
zer0signal
Member
 
Registered: Oct 2010
Location: Cleveland
Distribution: Slackware, Fedora, RHEL (4,5), LFS 6.7, CentOS
Posts: 258

Rep: Reputation: 29
Quote:
#======================= Global Settings =======================

[global]
log file = /var/log/samba/log.%m
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
obey pam restrictions = yes
map to guest = bad user
encrypt passwords = yes
passwd program = /usr/bin/passwd %u
passdb backend = tdbsam
wins support = true
dns proxy = no
server string = %h Server
unix password sync = yes
workgroup = WORKGROUP
os level = 20
security = user
syslog = 0
panic action = /usr/share/samba/panic-action %d
usershare allow guests = yes
max log size = 1000
pam password change = yes
When it prompts for login credentials on your Win7 box. For the user name are you specifying the group/domain IE: workgroup\username and then the pw?
 
Old 01-16-2011, 07:09 AM   #5
LordXzi
LQ Newbie
 
Registered: Jan 2011
Location: Reading, UK
Distribution: Ubuntu 11.10 x64
Posts: 7

Original Poster
Rep: Reputation: 1
Hi, thanks for your response.

I just tried it by resolving the workgroup and unfortunately no such luck. It sill can't seem to login.

Regards
 
Old 01-16-2011, 01:08 PM   #6
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Windows7 has join group feature under network & sharing center.
You can either create another group or join group.
I don't know if it will join a linux group, but worth a shot.

Last edited by EDDY1; 01-16-2011 at 01:10 PM.
 
Old 01-16-2011, 02:46 PM   #7
LordXzi
LQ Newbie
 
Registered: Jan 2011
Location: Reading, UK
Distribution: Ubuntu 11.10 x64
Posts: 7

Original Poster
Rep: Reputation: 1
Unfortunately that didn't see to help either, not sure you can join a Linux group either. Interestingly I fired up the Windows Network Diagnostics and it claims the problem is: 'The remote device or resource won't accept the connection'.

Regards
 
Old 02-13-2011, 11:22 AM   #8
gbirch
LQ Newbie
 
Registered: Feb 2011
Distribution: Ubuntu 10.04
Posts: 1

Rep: Reputation: 0
Try a re-install

Short version: Try using the Synaptic Package Manager to "re-install" the samba package. This option will not overwrite your configuration files (although you should back them up in case).

Long version: I have no clue why this worked. I experienced a similar problem. I had 64-bit Windows 7 systems happily accessing Ubuntu 10.04 file shares (as both network shares and mapped drives). Then, at some point that I sadly failed to document (i.e. at some point during a series of Windows and Ubuntu/Linux updates) the file shares stopped working, for no apparent reason. And, more curiously, the failure happened in stages: first the server stopped showing up in the "Network", but could still be browsed if I typed in the server name, and the mapped drives continued to work; second, everything went down (net view resulted in error code 53, network diagnostics resulted in "The remote device or resource won't accept the connection"). Throughout, my settings on both the Win 7 and Ubuntu boxes were unchanged, as were their network settings and availability.
In desperation, I decided to uninstall Samba and re-build the configuration from scratch. As an interim step, I tried the "re-install" option for Samba in the package manager. Magically, I have file access again, though I still can't see the server in the Win 7 "Network" list.
Go figure.

Last edited by gbirch; 02-13-2011 at 11:24 AM.
 
Old 02-14-2011, 11:36 AM   #9
LordXzi
LQ Newbie
 
Registered: Jan 2011
Location: Reading, UK
Distribution: Ubuntu 11.10 x64
Posts: 7

Original Poster
Rep: Reputation: 1
I just gave that a go and no such luck. I tried the reinstall method, no change even with a restart of both machines. I then tried reinstall after removing first and still nothing.

I'm pretty sure whatever has changed is my Windows 7 machine now as the shares work on my house-mate's machine which is also using Windows 7 x64 and the shares are still available under XP and Linux.

Thanks for the suggestion!
 
1 members found this post helpful.
  


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
SAMBA and Mount Credentials File No Longer Working tgrzelak Linux - Software 0 11-18-2009 08:45 AM
[SOLVED] Can no longer access my Samba shares Toonses82 Linux - Software 11 07-19-2009 08:19 PM
Samba no longer allowing access Keithj Linux - Networking 10 06-24-2007 10:19 AM
Samba no longer working lukeleia3 Linux - Networking 3 02-21-2005 01:31 PM
Samba access by Windows users locking out directory access with Konqueror harry_fine SUSE / openSUSE 1 12-18-2004 05:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:12 AM.

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