LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-20-2004, 05:12 AM   #1
ako
Member
 
Registered: Nov 2003
Location: Manila, Philippines
Distribution: Red Hat 9.0, Suse 9.0, Bayanihan Linux 3.0
Posts: 69

Rep: Reputation: 15
viewing my Linux Box in network neighborhood


Linux Gurus,

how can I view my Suse Linux in network neighborhood? I was able to view other machines in my Linux box, but I can't view Linux in Windows Network neighborhood, I've already edited smb.conf:

workgroup = workgroup of my windows box

I beleive that there are many things to edit, please help me with this matter.

thanx...

-AKO-
 
Old 04-20-2004, 11:55 AM   #2
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
post your smb.conf. turn off any firewalls.
 
Old 04-20-2004, 07:26 PM   #3
ako
Member
 
Registered: Nov 2003
Location: Manila, Philippines
Distribution: Red Hat 9.0, Suse 9.0, Bayanihan Linux 3.0
Posts: 69

Original Poster
Rep: Reputation: 15
this is my smb.conf

[global]
workgroup = MY_WORKGROUP
os level = 2
time server = Yes
unix extensions = Yes
encrypt passwords = Yes
map to guest = Bad User
printing = CUPS
printcap name = CUPS
socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY
wins support = No
veto files = /*.eml/*.nws/riched20.dll/*.{*}/
[homes]
comment = Home Directories
valid users = %S
browseable = No
read only = No
create mask = 0640
directory mask = 0750
[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

thanx!

-AKO-
 
Old 04-20-2004, 09:01 PM   #4
level
Member
 
Registered: Jan 2004
Posts: 82

Rep: Reputation: 15
Try adding the following in your global parameters:

security = SHARE
 
Old 04-20-2004, 09:55 PM   #5
ako
Member
 
Registered: Nov 2003
Location: Manila, Philippines
Distribution: Red Hat 9.0, Suse 9.0, Bayanihan Linux 3.0
Posts: 69

Original Poster
Rep: Reputation: 15
yo level,

that didn't work...

other suggestions?

-AKO-
 
Old 04-21-2004, 06:44 AM   #6
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
try adding the netbios name entry under global.

netbios name = yournetbiosname

turn off any firewalls, restart samba, and, you'll probably have to restart the windows machine as well.
good luck.
 
Old 04-21-2004, 08:42 PM   #7
ako
Member
 
Registered: Nov 2003
Location: Manila, Philippines
Distribution: Red Hat 9.0, Suse 9.0, Bayanihan Linux 3.0
Posts: 69

Original Poster
Rep: Reputation: 15
Peace Dog,

I've already added the netbios name... but still Linux can't be seen in Network Neighborhood. Do you think it has something to do with my Win98 configuration?
I've tried these 2 configurations:
Network Neighborhood config 1, I have:

- Clients for Microsoft Network
- my ethernet Device Driver
- TCP/IP
- File and Printer Sharing

Network Neighborhood config 2, I have:

- Clients for Microsoft Network
- my ethernet Device Driver
- IPX/SPX
- NetBEUI
- TCP/IP
- File and Printer Sharing

...but still doesn't resolve the problem.

...or do you think it's just the samba configuration?

thanx.

-AKO-
 
Old 04-22-2004, 06:29 AM   #8
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
win98 configuration #1 should be fine. you don't need ipx/spx or netbui, are you running a firewall on the win98 machine? could you post the your latest smb.conf? have you created any samba users? have you restarted samba after changes, and restarted the windows machine after changes?
 
Old 04-22-2004, 06:04 PM   #9
NetAX
Member
 
Registered: Mar 2004
Location: Boston, MA
Distribution: SuSE Linux Open/Enterprise, Red Hat, Ubuntu
Posts: 147

Rep: Reputation: 17
Are you running any server modules? Such as Samba Server?
 
Old 04-23-2004, 03:57 AM   #10
ako
Member
 
Registered: Nov 2003
Location: Manila, Philippines
Distribution: Red Hat 9.0, Suse 9.0, Bayanihan Linux 3.0
Posts: 69

Original Poster
Rep: Reputation: 15
Peace Dog,

Now I got confused to much...

let's start from the very beggining....

1. I've installed Suse 9.0 standard installation

2. I have 2 ethernet cards installed, 1 for the public IP(eth0) and the other is for the Local Network(eth1), but I am only using the live IP for experimenting, I always use eth1.

3. I wanted Win98's access my Linux shares on the Network Neighborhood.
- no problem pinging from Linux to Win98 and vice-versa
- I can see my Win98 Boxes in Local Network in Suse Desktop (but most of the
times it doesn't appear, and this is also one of my concern), but I Linux is not
visible in Network Neighborhood.

what got me more confused is that: like the first thing you said I have to create samba users(how am I suppose to do that?), then there is one more suggestion by NetAx asking me if I am running Samba Server Modules(are thos the smbd, nmbd thing?), and one more thing... I've read from the Samba.org downloadable samba how-to .pdf file that for to list my shares is to execute this command:

$ smbclient -L myhostname

w/c should produce the list of all the available shares in the server.

But when I tried to execute the said command in my Suse box, it says:

connection refused.
connection failed.

... also when I tried to execute smbd or nmbd command it says:

command not found.

I'm a newbie and I don't want to give up on this, I'm beginning to like this... but I know I should work hard... with the help of my linux friends...

by the way this is my smb.conf:

# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SuSE
# Date: 2003-09-23
[global]
workgroup = MY WORKGROUP
netbios name = MY NETBIOS NAME
security = share
os level = 2
time server = Yes
unix extensions = Yes
encrypt passwords = Yes
hosts allow = 192.168.0.4 192.168.0.244
map to guest = Bad User
printing = CUPS
printcap name = CUPS
socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY
wins support = No
veto files = /*.eml/*.nws/riched20.dll/*.{*}/
[test]
comment = Test share on %L
#volume name = TEST
path = /home/samba/test
writable = yes

[homes]
comment = Home Directories
valid users = %S
browseable = No
read only = No
create mask = 0640
directory mask = 0750
[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

thanx...

-AKO-
 
Old 04-23-2004, 06:56 AM   #11
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
to create samba users, you have to issue

smbpasswd -a username

to start or restart the daemons, you'll have to be root or su

try editing your smb.conf down to something very simple until things are working

[global]
workgroup = yourworkgroup
netbios name = yournetbiosname
security = SHARE
[share]
path = /tmp
public = yes

also turn off any firewalls, after you make the changes, restart the samba, restart the windows machine.
good luck.
 
Old 04-23-2004, 02:24 PM   #12
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHL9;F1-10; CentOS4-5; DebianSarge-Squeeze
Posts: 1,151

Rep: Reputation: 46
ako: If you have at least one samba user defined and smb is running, then it sounds like you are fighting a firewall. Be sure to turn off all linux and windows firewalls until you find the source of your problem. Please confirm that you have tested with the firewall(s) turned off.

When samba has problems, the first thing you should do is to stop iptables (or whatever you are using) and at least one windows boxís firewall. Half the time, itís just the firewall doing its job.
 
Old 04-23-2004, 11:39 PM   #13
ako
Member
 
Registered: Nov 2003
Location: Manila, Philippines
Distribution: Red Hat 9.0, Suse 9.0, Bayanihan Linux 3.0
Posts: 69

Original Poster
Rep: Reputation: 15
PEACEDOG,

Finally, it worked... I can now view shared files from the /tmp folder of my Linux box... thanx...

but there is another problem after I restarted... Linux is again not visible in network neighborhood... then I tried to type smbd and nmbd to start the daemons... but it seems that it is not working... I tried also smbd -D and nmbd -D but when I tried to type the top command... smbd and nmbd is not there... which I think that they are not running...

how do I configure this...?

thanx for your patience guys...

-AKO-
 
Old 04-24-2004, 07:45 PM   #14
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
to stop and start daemons, you need to be root, so before issuing the commands

su-<enter>
passwordword<rootpassword>

then

smbd start
nmbd start

to configure services for suse, i believe you can do that from yast2, i'm not familiar w/suse, so maybe search here for suse configuration.
good luck.
 
Old 04-25-2004, 09:50 PM   #15
ako
Member
 
Registered: Nov 2003
Location: Manila, Philippines
Distribution: Red Hat 9.0, Suse 9.0, Bayanihan Linux 3.0
Posts: 69

Original Poster
Rep: Reputation: 15
Peacedog,

:-(

I've already done what you've posted, I log on as root then I typed: smbd start and nmbd start... and then restart win98 and samba... but still linux box cannot be seen in Network Neighborhood...

-thanx...

-AKO
 
  


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
Is there a Network Neighborhood in Linux? Madrinator Linux - Newbie 4 09-27-2003 08:25 PM
Network Neighborhood for Linux allelopath Linux - Software 3 04-30-2003 09:18 AM
Cannot see Linux machine from Network Neighborhood rwelch Linux - Networking 13 03-09-2003 08:28 PM
'Should I see my linux box in Windows Neighborhood? ellisdodge Linux - Networking 13 07-15-2002 05:15 PM
Linux Network Neighborhood Like Program? LinuxJuanaBe Linux - Newbie 3 04-28-2002 11:22 PM

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

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