On Thursday 09 September 2004 11:00 am, BJ Tracy wrote:
| Hello All,
|
| This is strange.  In my office I still have 2 pc's with MS on them.  My
| laptop and my pc have Mandrake 10.0 and all are set up on my LAN.
|
| Both, my laptop and my pc can see all the files and hard drives on the MS
| pc's,  however my laptop cannot see my pc and my pc cannot see my laptop.  
| They use to see each other.
|
| I have gone thru all the settings and everything seems to set correctly.
|
| Not sure why this is the way it is now.  I must be missing something.
|
| Please advise and Thanks to all of you for your help.
| bj
| fyi - I have looked in drakxservices and there is smb
| running.  This is the only one that is there.  Is that correct?

Samba needs to have users and passwords configured.  

The  users for your Win boxes must be identical, and have an identical 
password to the samba users on the Linux boxes.  The Win boxes also have to 
belong to the same "WORKGROUP" as the Linux boxes, identified in 

your /etc/samba/smb.conf 

From here on, do everything as root.

/etc/samba/smbusers 
needs to be written in the format you see inside--this is mine

Unix_name = SMB_erylon SMB_hilary SMB_sarah SMB_eldon
root = administrator admin
nobody = guest pcguest smbguest

The samba password needs to be set (in a console, as root)

smbpasswd -a erylon

would make one for me.

Make one for each user (avoid hassles, just use the user system login 
password)

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

127.0.0.1  localhost
192.168.0.101 BoxName1
192.168.0.102 BoxName2
192.168.0.103 BoxName3
etc

Don't eliminate the 127.xx localhost entry.  

 Add all 4 of your networked machines.

/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.101             BoxName1.workgroup_name
192.168.0.102             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)

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.101 192.168.0.102 192.168.0.103 192.168.104 

You probably want to configure your /etc/samba/smb.conf file to allow a share 
on your Linux boxes  I make a directory /home/public (directories under /home 
can be easily made into a share) and give it world permissions: 
#mkdir /home/public 
#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 for the share 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

Of course, substitute your actual machine names, workgroup name, user names, 
and actual ethernet addresses for each box in the above examples.  If you 
have a firewall you must open ports 137,138,139.

hth

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