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 04-02-2004, 10:33 PM   #1
Tiyogi
Member
 
Registered: Nov 2003
Location: Hyde Park, Ny
Distribution: Ubunta
Posts: 117

Rep: Reputation: 15
A Few Question about Samba


I am attempting to set up Samba_Swat like many other people have.
I can ping both machines Linux and a Win98.
I have Swat installed and fuctional.
However all of my attempts have failed so far to get my Linux to see my Win98 and vie see verse.
So I have some questions.[list=1][*]Is the Samb workgroup the same as the Linux group and user?[*]Is the user in Samba different then the ones Linux?[*]Where in Linux do yo go to see the Win98 machine? In Win98 I go to Neighborhood Network.[*]Can I use the same name for Swat workgroup and netbios?[/list=1]
When I log into Swat and chose "Global"
I am presenteded with a number of items.


Base Options
workgroup Does this have to match a Win98 workgroup or match a linux goup?
netbios name Do I need to fill in this block?
server string Do I need to fill in this block?
interfaces Do I need to fill in this block?


If in workgroup under "Base Option", I use the name "localhost" will this be the name of what show up in the Win98 Network Neighborhood?

If you are running Win98 and you access the Neighborhood Nework window what shows up in you window.

What shows up in mine is
Entire network
Iwill ( This is the name of the Win98 machine)

Now if I double click on "Entire Network"
Then 2 computes show up
Iwill
localhost

However if I double click on "localhost", I get an error like message. "Localhost is not accessible.
The computer or sharename could not ve found. Make sure you typed it correctly"


Here is a copy of my smb.conf file.

# Samba config file created using SWAT
# from localhost.localdomain (127.0.0.1)
# Date: 2004/04/02 17:15:39

# Global parameters
[global]
workgroup = LOCALHOST
netbios name = LOCALHOST
guest account = me

[lin_book]
comment = Linux bookmarks
path = \home\me\bookmarks
guest ok = Yes


That's enough for right know. I'll check back later.
 
Old 04-03-2004, 02:20 AM   #2
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
Quote:
workgroup Does this have to match a Win98 workgroup or match a linux goup?
This has to match the workgroup of which your Win98 box is a member. Samba makes one up for you, but the default Samba-created workgroup does not, in my experience, ever match the default Windows-created workgroup of any of the Windows versions, so you have to change it.

Quote:
Is the user in Samba different then the ones Linux?
No, but the users listed in smbuser have to be registed users of the Linux system in question. If I'm not mistaken, the "outside" users have to be registered as well (either specifically and individually, with their Windows username and pw, or you'd have to allow guest access, so that the network users would be mapped to the guest account, which does not require a username or password to be authenticated by Samba).

Quote:
netbios name Do I need to fill in this block?
Yes, unless you want to be filling in IP addresses all the time. It's the name of your PC as it will be seen on the network, and is also used for name resolution (so that the network server knows what your ip address is, without which it can't communicate with you).

Quote:
server string Do I need to fill in this block?
No, but it is polite. It's the description field for your Samba server; it will show up in the Properties of your PC when clicked, or in the "comment" field if Details view is on.

Quote:
interfaces Do I need to fill in this block?
I would imagine so (I don't use SWAT). I would guess that this is asking you what interface (NIC) you want the Samba server to use. If you just have one, it would be eth0, but suppose you had two and one was connected to your modem and the second was connected to the network? Then you'd want the interface to be eth1. Btw, according to the SWAT section of the Samba documentation:

Quote:
SWAT has context-sensitive help. To find out what each parameter is for, simply click on the Help link to the left of the configuration parameter.
.

You might to try this. That's what the help is for, after all.

Quote:
Now if I double click on "Entire Network"
Then 2 computes show up
Iwill
localhost

However if I double click on "localhost", I get an error like message. "Localhost is not accessible.
The computer or sharename could not ve found. Make sure you typed it correctly"
What is happening here is two-fold;

1) you have set a workgroup of which the Win98 machine is not a member, so even if it was valid, the Win98 machine could not access shares in that workgroup; and

2) you have set a netbios name that specifically resolves to an IP address different from anything that the Win98 machine has access to (localhost always resolves to the loopback address of 127.0.0.1, which is not on the network, and not in any workgroup).

So change your workgroup to whatever the workgroup of the Win98 machine is, and and change your netbios name to something other than localhost.... the same as your hostname is always a good choice (unless your hostname is also localhost, in which case make it "joe" or something).

You might want to read the Samba documentation, O'Reilly's "Using Samba" (online version). or Rute's Tutorial, Samba section.

Hope this helps.
 
  


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 smb.config question (quick question) TheDOGG Linux - Networking 1 03-02-2004 07:19 AM
Samba question Ryknow215 Linux - General 3 02-23-2004 06:11 PM
Samba question Marklar Linux - Networking 30 01-02-2004 03:44 PM
A Samba Question? gsmonk Linux - Networking 2 08-20-2003 09:14 AM
RE: Samba question pls help {Newbie question} Radiouk Linux - Networking 4 06-03-2002 06:40 PM

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

All times are GMT -5. The time now is 02:59 PM.

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