Click to See Complete Forum and Search --> : SMB.conf


mikeee52
05-09-2002, 09:55 AM
Okay, I have searched the Web, read and looked at some files. What I need Is a step by step instructions to hook up a XP box to A Linux box using Samba. A sample smb.conf file would be nice too. I am really attempting to learn Linux, (currently using Mandrake 8.1) have installed 8.1, is up and running, have Samba installed and know how to get to smb.conf file. Now what do I do to the file to get both boxes to see each other. I guess it is not too hard to do but I have been using Windows so long that Linuxese is somthing I am not used to yet.
Please help.
mike

mangeli
05-09-2002, 10:14 AM
Check out the Docs here http://us1.samba.org/samba/samba.html , or email me, I can send you my samba conf file. Plus the install directions are very good, as is the NHF on this site!

michaelk
05-09-2002, 11:25 AM
The smb.conf file depends on what you want to do i.e. primary domain controller,password Authentication, print server, file sharing etc. Be sure to read the documentation.

If you just want file sharing/print server the smb.conf from the original install will work as is. You should be able to see the linux box in network nieghborhood but you probably will not be able to access it.

In smb.conf change:
netbios name = whatever you want
workgroup = same as the XP workgroup

For simplicity add the same user/password on the linux box as the XP box.
Then you will need to add a smb password:
as root:
smbpasswd -a newuser

restart smb & nmb

Your XP box should be able to connect to the linux box and see the user's folder and any printers.

If you want to share windows directories/printers:
setup sharing files and printers
To see the windows share directory on the linux box:
mount -t smbfs //xpbox/share /mnt/disk

You can also add the xp shared to /etc/fstab to mount on linux startup.