LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-15-2007, 08:29 PM   #1
Agentx86
LQ Newbie
 
Registered: Feb 2007
Distribution: SUSE 10.2 AMD64
Posts: 5

Rep: Reputation: 0
SUSE 10.2 Really Strange Windows Sharing Problem (smb.conf included)


Hello, I am running openSUSE 10.2 on an AMD64 platform. My network consists of this SUSE computer, a Dang Small Linux box running a game server, an iBook G3, 2 WinXP machines, and 1 Win2000 machine. All firewalls are off with the exception of the windows firewall (which does allow sharing from the other comps) and Zone Alarm on the 2000 machine, which is set to trust a certain range of IP addresses.

My SUSE box is set up to be the master browser and domain controller on network "MSHOME." All computers are set to this workgroup. With Windows I can access my SUSE box with no trouble, and with my SUSE box I can access Windows Shares provided that I use the IP address of the Windows machine instead of the hostname.

All the computers on the network appear in Konqueror, but when attempting to connect to them by name, without naming by IP, it times out. Trying to connect on the command line always results in SUSE trying to connect to 208.67.219.40

However, typing "findsmb" does show several of the network computers and their appropriate IP addresses.
I have done quite a bit of research, and some reading on this forum, but I cannot for the life of me figure out what's going on.

Here's my config file, and thanks.

Code:
# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
# samba-doc package is installed.
# Date: 2006-11-27
[global]
workgroup = MSHOME
printcap name = cups
cups options = raw
map to guest = Bad User
include = /etc/samba/dhcp.conf
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
usershare allow guests = Yes
usershare owner only = False
usershare max shares = 100
add machine script = /usr/sbin/useradd  -c Machine -d /var/lib/nobody -s /bin/false %m$
domain logons = yes
domain master = yes
preferred master = yes
os level = 65
wins support = Yes
dns proxy = no
restrict anonymous = no
guest ok = yes
max protocol = NT
acl compatibility = 
ldap ssl = No
server signing = Auto
log file = /home/agent86/sambalog.txt
lm interval = 30

[homes]
comment = Home Directories
valid users = %S, %D%w%S
read only = No
inherit acls = Yes

[possum]
comment = Network Profiles Service
path = /home/agent86/Desktop/Possum/
read only = no
create mask = 0600
directory mask = 0700
case sensitive = no
strict locking = no
msdfs proxy = no

[users]
comment = All users
path = /home
read only = No
inherit acls = Yes
veto files = /aquota.user/groups/shares/

[groups]
comment = All groups
path = /home/groups
read only = No
inherit acls = Yes

[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
use client driver = yes

[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775

[netlogon]
comment = Network Logon Service
path = /var/lib/samba/netlogon
write list = root
 
Old 02-20-2007, 02:52 AM   #2
swerdna
Member
 
Registered: Jun 2006
Location: Oz
Distribution: openSUSE 10.x
Posts: 80

Rep: Reputation: 16
Quote:
Originally Posted by Agentx86
Hello, I am running openSUSE 10.2 on an AMD64 platform. My network consists of this SUSE computer, a Dang Small Linux box running a game server, an iBook G3, 2 WinXP machines, and 1 Win2000 machine. All firewalls are off with the exception of the windows firewall (which does allow sharing from the other comps) and Zone Alarm on the 2000 machine, which is set to trust a certain range of IP addresses.

My SUSE box is set up to be the master browser and domain controller on network "MSHOME." All computers are set to this workgroup. With Windows I can access my SUSE box with no trouble, and with my SUSE box I can access Windows Shares provided that I use the IP address of the Windows machine instead of the hostname.

All the computers on the network appear in Konqueror, but when attempting to connect to them by name, without naming by IP, it times out. Trying to connect on the command line always results in SUSE trying to connect to 208.67.219.40

However, typing "findsmb" does show several of the network computers and their appropriate IP addresses.
I have done quite a bit of research, and some reading on this forum, but I cannot for the life of me figure out what's going on.

Here's my config file, and thanks.

Code:
no point re-quoting this
If you want to improve browsing
Code:
[global]
workgroup = MSHOME
printcap name = cups
cups options = raw
map to guest = Bad User
include = /etc/samba/dhcp.conf
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
usershare allow guests = Yes
usershare owner only = False
usershare max shares = 100
add machine script = /usr/sbin/useradd  -c Machine -d /var/lib/nobody -s /bin/false %m$
#domain logons = yes
#domain master = yes
preferred master = yes
security = user
passdb backend = tdbsam
os level = 65
#wins support = Yes
#dns proxy = no
#restrict anonymous = no
#guest ok = yes
#max protocol = NT
#acl compatibility = 
#ldap ssl = No
#server signing = Auto
#log file = /home/agent86/sambalog.txt
#lm interval = 30
Turn off wins server, make the Susebox a local master browser and get rid of the Linux server stuff - yiu're only a workgroup. Give that a go.
If you want easy access to a share it should then have this complexion:

Code:
[possum]
path = /home/agent86/Desktop/Possum/
read only = No
force group = users
force user = agent86
#guest ok = Yes #turn this on for guest access, including the entire internet
See how you go
Swerdna

Last edited by swerdna; 02-20-2007 at 02:56 AM.
 
Old 02-24-2007, 10:45 PM   #3
Agentx86
LQ Newbie
 
Registered: Feb 2007
Distribution: SUSE 10.2 AMD64
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for your suggestions, but even after implementing all of the above, I still cannot browse the network, even when a "findsmb" command shows that my suse box is the master browser. Whenever I try to browse by hostname, it tries to connect to some other IP address, it's always the same each time, no matter what the hostname. I can still type in the IP address of the windows machine manually and connect, but that can be a pain. I do only have 6 other computers I connect to, but I will not always be able to come up with an IP address off the top of my head!
I am really enjoying openSUSE 10.2, but I haven't had this problem with any other version of SUSE. I think the entire browsing/mounting system got screwed up in their decision to move away from smbfs to cifs. I now have the kernel module installed that is supposed to restore smbfs support, but browsing is still not working.
I need help!
 
Old 02-24-2007, 11:18 PM   #4
swerdna
Member
 
Registered: Jun 2006
Location: Oz
Distribution: openSUSE 10.x
Posts: 80

Rep: Reputation: 16
Quote:
Originally Posted by Agentx86
Thanks for your suggestions, but even after implementing all of the above, I still cannot browse the network, even when a "findsmb" command shows that my suse box is the master browser. Whenever I try to browse by hostname, it tries to connect to some other IP address, it's always the same each time, no matter what the hostname. I can still type in the IP address of the windows machine manually and connect, but that can be a pain. I do only have 6 other computers I connect to, but I will not always be able to come up with an IP address off the top of my head!
I am really enjoying openSUSE 10.2, but I haven't had this problem with any other version of SUSE. I think the entire browsing/mounting system got screwed up in their decision to move away from smbfs to cifs. I now have the kernel module installed that is supposed to restore smbfs support, but browsing is still not working.
I need help!
Well I don't know what to say except to go through a checklist
  • Duplicate IP's
  • IP's all on the same subnet (Linux --> kdesu ifconfig; windows --> ipconfig/all)
  • Consistent workgroup name
  • declare NetBIOS name of LinuxBox in smb.conf = same as hostname in Yast?
  • Enable NBT ping in nsswitch
  • Consistency between hostnames in hosts file, NetBIOS names in lmhosts file, and and NetBIOS names in windows "my computer" and smb.conf.

When my LAN falls apart I check carefully which machines can be seen from which machines and single out the bad one (it sounds like your SuseBox) and re-network it, using methodical references. ED some Samba tute's here. It'll be some silly little thing that's not obvious.
G luck
Swerdna
 
Old 02-25-2007, 09:33 AM   #5
Agentx86
LQ Newbie
 
Registered: Feb 2007
Distribution: SUSE 10.2 AMD64
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for the help!
I edited my nsswitch.conf to include wins resolution.
Just to throw another thing into the ring, I can connect to the sole Win2000 machine by hostname, but not any of the XP machines. Maybe I have something screwy going on with my XP machines...
Still looking for that silly, obvious little thing!
 
  


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 in Debian, smb.conf: smb passwd file = ?????????? henrnorl Linux - Software 1 10-06-2006 09:43 AM
A samba sharing server should have the ip that is in the hosts allow of smb.conf attockonian Linux - Networking 1 08-31-2006 02:49 PM
Problem authenticating users for smb sharing Mirkon Linux - Networking 8 02-21-2005 02:40 PM
strange problem with smb mount -> noexec ? poison Slackware 2 01-06-2004 02:48 AM
set up Windows-Linux file-sharing with the SMB protocol mrobb Linux - Software 0 05-27-2003 11:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:58 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