Click to See Complete Forum and Search --> : Can some one provide me with a sample smb.conf file to cater for a windows 98 network


Arther
11-20-2002, 01:37 PM
Can some one provide me with a sample smb.conf file to cater for a windows 98 network?

I've tried making one my self but I end up crashing my win98 machines whenever I try to access the samba shares in network neighbourhood.

My linux box is running RedHat 7.3, and Samba 2.2.6.
I also have 2 windows 98 (first edition) machines on the network making a total of 3 machines.

If you could just provide me with a sample smb.conf file that works for your windows 98 machines I can change the relevent fields (e.g. workgroup name etc.) my self.

Thanks,

Arther. :)

tonimontanna
11-21-2002, 05:05 AM
# Samba config file created using SWAT
# from WORKSTATION (192.168.0.2)
# Date: 2002/11/21 02:52:28

# Global parameters
[global]
netbios name = SAMBA
server string = Samba Server
security = SHARE
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*success fully*
unix password sync = Yes
log file = /var/log/samba/%m.log
max log size = 0
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
os level = 0
dns proxy = No
guest account = smbuser
hosts allow = 192.168.0.2 255.255.255.0
printing = lprng

[homes]
comment = Home Directories
valid users = %S
read only = No
create mask = 0664
directory mask = 0775
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No

[public]
comment = public
path = /home/public
read only = No
create mask = 0644
directory mask = 0775
guest ok = Yes

[data]
comment = data
path = /home/samba/data
read only = No
create mask = 0660
directory mask = 0770
guest ok = Yes

----------------------------------------------------------

Quick and easy how to
----------------------------------------------------------




1.Create the group smb

2.Create the user smbuser, the home directory should
be in /home/public

Disable login on the smbuser account since no one will
actually be logging in with that name.

Public Directory

We should already have a /home/public (since you
created it just a sec ago). It should be owned by
smbuser and belong to the group smb. Since files in
this directory should always be owned by the smb
group, we will set the SGID bit on it.
Everyone will have shared read and write access to
this directory as well, so the permissions should be
set like so:

# chown smbuser:smb /home/public
# chmod 2777 /home/public

Now every file that gets created in /home/public gets
owned by the smb group no matter who creates it.

Data Directory

My data directory is /home/samba/data. This should
only be accessible by certain people - those that
belong to the smb group. So I set up the directory
like so:

# mkdir /home/samba
# chown smbuser:smb /home/samba
# chmod 2770 /home/samba

# mkdir /home/samba/data
# chown smbuser:smb /home/samba/data
# chmod 2770 /home/samba/data

Check your hosts file

You should have an /etc/hosts file that maps host
names to IP addresses.

/etc/hosts
127.0.0.1 localhost localhost.localdomain
192.168.0.1 homer


Create an lmhosts file
The lmhosts file maps hostnames(or IP addresses) to
NetBIOS (computer) names. Normally you would probably
want the NetBIOS name and the hostname to be the same:

# /etc/lmhosts
localhost homer