LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-07-2005, 01:45 PM   #1
Whiskers
Member
 
Registered: Jan 2004
Location: Lacey, WA
Distribution: SUSE 9.2
Posts: 102

Rep: Reputation: 15
Suse 9.2 Samba, cant see Windows computers, but they can see Linux


I'm running Suse 9.2 with both samba client AND server installed. I used YAST to configure which workgroup I'm in and to tell SMB server to run at startup. However the Windows computer can see the linux box, but the linux box, cant see the Windows computers. I havent a clue whats going on, or why this is so.

I also check with Guarddog, and it is set to allow NETBIOS and SMB for the local internet.

Here is my smb.conf if that helps any

# 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: 2005-04-19
[global]
workgroup = HOME
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
printer admin = @ntadmin, root, administrator
map to guest = Bad User
include = /etc/samba/dhcp.conf
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
encrypt passwords = yes
ldap idmap suffix = ou=Idmap
ldap machine suffix = ou=Computers
netbios name = Oneniisama
ldap suffix = dc=example,dc=com
security = user
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
domain logons = no
domain master = false
local master = yes
os level = 65
preferred master = yes
passdb backend =

[homes]
comment = Home Directories
valid users = %S
browseable = no
read only = yes
inherit acls = yes

[profiles]
comment = Network Profiles Service
path = %H
read only = yes
store dos attributes = yes
create mask = 0600
directory mask = 0700

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

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

[printers]
comment = All Printers
path = /var/tmp
printable = yes
create mask = 0600
browseable = yes

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

Last edited by Whiskers; 05-07-2005 at 07:48 PM.
 
Old 05-08-2005, 07:39 AM   #2
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
Can you access the Windows-box by IP (in konqueror, type smb://<IP>)? Then I would guess it is a name-server problem. You could list your Windows-box in /etc/hosts. Is nmbd (NetBIOS name server) running on you Linux machine? You could also check the firewall settings on both machines.
 
Old 05-08-2005, 07:51 AM   #3
Whiskers
Member
 
Registered: Jan 2004
Location: Lacey, WA
Distribution: SUSE 9.2
Posts: 102

Original Poster
Rep: Reputation: 15
Can you access the Windows-box by IP (in konqueror, type smb://<IP> )? Then I would guess it is a name-server problem.

Yes I can, however they prompt me for username and password, that is something new.


You could list your Windows-box in /etc/hosts.

Not an option we are on DHCP, and there are MANY Windows boxes.


Is nmbd (NetBIOS name server) running on you Linux machine?

I dont know, how would I check?
 
Old 05-08-2005, 08:58 AM   #4
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
Quote:
I dont know, how would I check?
Code:
user@linux:~> ps ax | grep nmbd
16762 ?        Ss     0:00 /usr/sbin/nmbd -D -s /etc/samba/smb.conf
Maybe the nmbd port (137) needs to be opened on your firewall.

The longer I think about it, the stranger this appears. Usually it is harder to make the Windows machines see the Samba server. You problem is new to me. Sorry! I would guess it is a Windows-side problem.
 
Old 05-08-2005, 11:07 AM   #5
Whiskers
Member
 
Registered: Jan 2004
Location: Lacey, WA
Distribution: SUSE 9.2
Posts: 102

Original Poster
Rep: Reputation: 15
user@Oneniisama:~> ps ax | grep nmbd
5597 ? Ss 0:00 /usr/sbin/nmbd -D -s /etc/samba/smb.conf
16829 pts/1 S+ 0:00 grep nmbd
 
Old 05-08-2005, 02:42 PM   #6
Whiskers
Member
 
Registered: Jan 2004
Location: Lacey, WA
Distribution: SUSE 9.2
Posts: 102

Original Poster
Rep: Reputation: 15
Ok I removed and then reinstalled samba and removed the guarddog firewall and just used teh SUSE config for firewall, and told it to allow samba

new samba confi file now


# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE
# Date: 2004-10-21
[global]
workgroup = HOME
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
printer admin = @ntadmin, root, administrator
username map = /etc/samba/smbusers
map to guest = Bad User
include = /etc/samba/dhcp.conf
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
security = user
encrypt passwords = yes
ldap idmap suffix = ou=Idmap
ldap machine suffix = ou=Computers
ldap suffix = dc=example,dc=com

[homes]
comment = Home Directories
valid users = %S
browseable = no
read only = no
inherit acls = yes

[profiles]
comment = Network Profiles Service
path = %H
read only = no
store dos attributes = yes
create mask = 0600
directory mask = 0700

[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

[pdf]
comment = PDF creator
path = /var/tmp
printable = yes
print command = /usr/bin/smbprngenpdf -J '%J' -c %c -s %s -u '%u' -z %z
create mask = 0600

[printers]
comment = All Printers
path = /var/tmp
printable = yes
create mask = 0600
browseable = no

[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775
 
Old 05-08-2005, 04:16 PM   #7
Whiskers
Member
 
Registered: Jan 2004
Location: Lacey, WA
Distribution: SUSE 9.2
Posts: 102

Original Poster
Rep: Reputation: 15
Problem solved! Rather stupid solution too. Even though the firewall was configured to allow samba sharing, it was still blocking something. I did a search for "unable to find any workgroups in yoru local network" the message you get when you try to browse computer, and it led to SUSE firewall being the cause. Since we're behind a hardened firewall router, I disabled the SUSE firewall and now I can see the windows computers YAY
 
  


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
Backup windows computers from linux? hondaman Linux - Software 4 10-01-2005 04:50 PM
Printing to a cups samba server on slackware from windows computers Jared Lewis Linux - Networking 1 06-10-2005 02:55 PM
Problems sharing the printer on Linux via Samba to Windows computers melao SUSE / openSUSE 25 03-22-2005 09:37 AM
How to connect two computers one with Windows and other with Linux? dineshjk Linux - Networking 2 05-10-2004 09:00 AM
Cant detect other computers[running on MS Windows XP] from Linux SuSe 9.0 Kals Linux - Newbie 2 12-17-2003 03:56 AM

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

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