On Saturday 14 August 2004 08:04 am, BJ Tracy wrote:
| On Friday 13 August 2004 07:38 pm, Erylon Hines wrote:
| > On Friday 13 August 2004 12:05 pm, BJ Tracy wrote:
| > |
| > | Slowly getting my office up and running on Linux.  U
| >
| > Hmm--do you have the same username and password on the W98 machine as on
| > the Linux machine?
|
| NO

First off, it has been a long, long time since I had 98 (or any windows) on my 
network, so I'm doing this from far distant memory.  

You need to go to the Control Panel and make a user for your W98 box that is 
identical, and that has an identical password to the samba user on the Linux 
box.  The 98 box also has to belong to the same "WORKGROUP" identified in 
your /etc/samba/smb.conf 

From here on, do everything as root.
|
| > Do you have an entry for the W98 machine in /etc/samba/lmhosts
|
| I'm NEW to Linux and not sure what you are talking about here.

/etc/samba/lmhosts gives samba a "roadmap" to IP/computer names of network 
machines.

127.0.0.1  localhost
192.168.0.1 BoxName1
192.168.0.2 BoxName2
192.168.0.3 BoxName3
etc

Don't eliminate the 127.xx localhost entry.  I'm assuming you are using 192.xx 
and not 10.xx--adjust accordingly.  Add all your networked machines.
|
| > How about an entry for it in /etc/hosts
|
| ?????  Not sure

/etc/hosts allows remote hosts to be identified by the samba box.
The convention is:

127.0.0.1                       localhost.localdomain localhost
192.168.0.1             BoxName1.workgroup_name
192.168.0.2             BoxName2.workgroup_name

The localhost entry is required.    Add an entry for each box on your network 
(there are easier ways, but this always works)
|
| > Does the /etc/hosts.allow entry cover the IP addy of the offending
| > machine?
|
| ??????

This allows specific addresses to access the samba machine.

This is the way I do mine, there are others, but this is secure enough for me, 
and simple.  On a small network an IP for each machine here is no problem.  
On a large network you might want to us a range of addresses.

ALL : 192.168.0.2 192.168.0.3 192.168.0.4 192.168.0.5 

| > You can add the name and IP addy of the Linux machine to the W98
| > machine's lmhost file.
|
| Where do I look for this file on 98?

In the Windows/System folder (I think) there is a file named "lmhost.sam", or 
very similar.  You can open Notepad and create an lmhost.txt file that 
follows the conventions of the *.sam sample file and save it to the same 
folder that lmhost.sam is located.
|
| > I'm assuming that the W98 box shows up everywhere but on the Linux box.
|
| Yes that is correct.  On the 98 box I can see everything in my office.
| Thanks for your help
| bj

I always name my 8 network machines the same, and I keep a copy of the above 
files and just put them into any new install, so I don't really have to 
remake my network every time.
|
| > Erylon
| >
| > | Also, to move or copy files from one machine to another is there
| > | anything that I need to do as well, ie permissions or configuring
| > | routes,,,please advise.

The 98 machine is basically open to the whole network if you have file sharing 
enabled.

You probably want to configure your /etc/samba/smb.conf file to allow a share 
on your Linux box.  I make a directory /home/public (directories under /home 
can be easily made into a share) and give it world permissions:  
#chmod 2777 /home/public.  
With msec enabled (which it is by default), you'll have to jump through some 
hoops or it will change the permissions on you (I disable msec because I know 
what permissions I want on directories and msec irritates me to no end).

The entry in the smb.conf file would look something like this:

[Public]
        comment = public folder
        path = /home/public
        admin users = @workgroup_name
        write list = @workgroup_name
        force group = @workgroup_name
        read only = No
        inherit permissions = Yes
        guest ok = Yes

| > |
| > | Thanks in advance.

I hope this is useful

e


____________________________________________________
Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com
____________________________________________________

Reply via email to