Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-07-2005, 01:45 PM
|
#1
|
Member
Registered: Jan 2004
Location: Lacey, WA
Distribution: SUSE 9.2
Posts: 102
Rep:
|
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.
|
|
|
05-08-2005, 07:39 AM
|
#2
|
Senior Member
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517
Rep:
|
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.
|
|
|
05-08-2005, 07:51 AM
|
#3
|
Member
Registered: Jan 2004
Location: Lacey, WA
Distribution: SUSE 9.2
Posts: 102
Original Poster
Rep:
|
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?
|
|
|
05-08-2005, 08:58 AM
|
#4
|
Senior Member
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517
Rep:
|
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.
|
|
|
05-08-2005, 11:07 AM
|
#5
|
Member
Registered: Jan 2004
Location: Lacey, WA
Distribution: SUSE 9.2
Posts: 102
Original Poster
Rep:
|
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
|
|
|
05-08-2005, 02:42 PM
|
#6
|
Member
Registered: Jan 2004
Location: Lacey, WA
Distribution: SUSE 9.2
Posts: 102
Original Poster
Rep:
|
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
|
|
|
05-08-2005, 04:16 PM
|
#7
|
Member
Registered: Jan 2004
Location: Lacey, WA
Distribution: SUSE 9.2
Posts: 102
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 04:48 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|