Hi, I saw a couple of people with some standard Samba problems.
I hope that this example might clear some things up:
Code:
# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
# samba-doc package is installed.
# Date: 2005-03-22
#
# Notes from Last-Attacker
#
# When setting up in SuSE, make sure you do the following:
# * Replace the existing smb.conf with this one (make a copy
# first if you desire)
# * 'Copy' the unix account passwords over the smbpasswd file
# cat /etc/passwd | mksmbpasswd.sh > /etc/samba/smbpasswd
# * Create users individually with 'smbpasswd <user>'
# * Open the following ports in firewall :
# (TCP) 137, 138
# (UDP) 139, 445
# * Start/Restart the smb service
#
# What this SAMBA Config does:
# * Shares the /var/shares folder for guest full access
# (for people to copy stuff to you and for you to share
# with others without giving your account details, just
# make sure make that directory is created and with the
# nobody as user & group with full access)
# * Users that has accounts on this machine can log in
# from Windows or Linux because they have to give their
# username and password through the profiles folder.
# * Once they have logged in, a folder in the server's
# main view appears with the user's name on it sothat
# the user don't have to log in again but when that
# browser program is closed, it SHOULD 'log off'
# (standard with all SAMBAS).
#
[global]
# smb ports = 139 445
workgroup = WORKGROUP
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
# printer admin = @ntadmin, root, administrator
username map = /etc/samba/smbusers
encryptpasswords = Yes
netbios name = LServer
dns proxy = No
max log size = 100
map to guest = Bad User
security = user
passwd program = /usr/bin/passwd %u
smb passwd file = /etc/samba/smbpasswd
server string = Linux Home Server
socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
domain logons = No
domain master = No
# include = /etc/samba/dhcp.conf
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
[homes]
comment = Home Directories
valid users = %S
browseable = No
read only = No
inherit acls = Yes
[profiles]
comment = Network Profiles Service
path = %H
read only = No
store dos attributes = Yes
create mask = 0600
directory mask = 0700
[sharing]
comment = Open share directory
path = /var/shares
guest only = Yes
read only = No
browseable = Yes
create mask = 1777
directory mask = 1777
max connections = 3
inherit acls = Yes
force user = nobody
force group = nobody
[users]
comment = All users
path = /home/
read only = No
browseable = No
inherit acls = Yes
veto files = /aquota.user/groups/shares/