Voici mon smb.conf :
#======================= Global Settings =====================================
# [global]
# log file = /var/log/samba/%m.log
# ldap ssl = No
# restrict anonymous = no
# socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
# username map = /etc/samba/user.map
# domain master = no
# map to guest = Bad User
# printcap cache time = 60
# dns proxy = no
# max protocol = NT
# server string = SvrSsamba
# password server = 06290108
# path = /home/manu
# workgroup = PARTAGE
# server signing = Auto
# printcap name = cups
# security = share
# max log size = 50
# hosts allow = 192.168.2. 127
# You can enable VFS recycle bin and on-access virus-scanning on a per
# share basis:
# Uncomment the next 2 lines (make sure you create a .recycle folder in
# the base of the share and ensure all users will have write access to it.
# For virus scanning, install samba-vscan-clamav and ensure the clamd service
# is running
# vfs objects = vscan-clamav recycle
# vscan-clamav: config-file = /etc/samba/vscan-clamav.conf
# Un-comment the following and create the netlogon directory for Domain Logons
# [netlogon]
# comment = Network Logon Service
# path = /var/lib/samba/netlogon
# guest ok = yes
# writable = no
#Uncomment the following 2 lines if you would like your login scripts to
#be created dynamically by ntlogon (check that you have it in the correct
#location (the default of the ntlogon rpm available in contribs)
#root preexec = /usr/bin/ntlogon -u '%u' -g '%g' -o %a -d /var/lib/samba/netlogon/
#root postexec = rm -f '/var/lib/samba/netlogon/%u.bat'
# Un-comment the following to provide a specific roving profile share
# the default is to use the user's home directory
#[Profiles]
# path = /var/lib/samba/profiles
# browseable = no
# guest ok = yes
# writable = yes
# This script can be enabled to create profile directories on the fly
# You may want to turn off guest acces if you enable this, as it
# hasn't been thoroughly tested.
#root preexec = PROFILE='/var/lib/samba/profiles/%u'; if [ ! -e $PROFILE ]; # then mkdir -pm700 $PROFILE; chown '%u':'%g' $PROFILE;fi
# If you want read-only profiles, fake permissions so windows clients think
# they have written to the files
# vfs objects = fake_perms
# NOTE: If you have a CUPS print system there is no need to
# specifically define each individual printer.
# You must configure the samba printers with the appropriate Windows
# drivers on your Windows clients or upload the printer driver to the
# server from Windows (NT/2000/XP). On the Samba server no filtering is
# done. If you wish that the server provides the driver and the clients
# send PostScript ("Generic PostScript Printer" under Windows), you have
# to use 'printcap name = cups' or swap the 'print command' line below
# with the commented one. Note that print commands only work if not using
# 'printing=cups'
[global]
# même nom de groupe que celui sous Windows (Voisinage réseau)
workgroup = PARTAGE
# aucun compte invité
guest account = nobody ;
# accès multi-utilisateur
share modes = yes
# Adresse IP de la carte réseau du serveur
# et masque de sous-réseau
interfaces = 192.168.2.2/255.255.255.0
# emplacement du fichier printcap (imprimantes sur le serveur Linux)
#printcap = /etc/printcap
# partage de toutes les imprimantes définies dans printcap
#load printers = yes
# fichier journal de Samba
log level = 1
log file = /var/log/samba/log.%m
# mode de sécurité : (user / share / server)
security = SHARE
# restreindre l'accès a certains sous-réseaux
hosts allow = 192.168.2. 127.
# empecher l'accès à certaines machines
#hosts allow = 15.144. EXCEPT 155.144.179.2
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
# to allow user 'guest account' to print.
guest ok = yes
printable = yes
create mask = 0700
# =====================================
# print command: see above for details.
# =====================================
print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers.
# print command = lpr-cups -P %p %s # using cups own drivers (use generic PostScript on clients).
# If you install drivers on the server, you will want to uncomment this so
# clients request the driver
use client driver = yes
# This share is used for Windows NT-style point-and-print support.
# To be able to install drivers, you need to be either root, or listed
# in the printer admin parameter above. Note that you also need write access
# to the directory and share definition to be able to upload the drivers.
# For more information on this, please see the Printing Support Section of
# /usr/share/doc/samba-<version>/docs/Samba-HOWTO-Collection.pdf
#
# A special case is using the CUPS Windows Postscript driver, which allows
# all features available via CUPS on the client, by publishing the ppd file
# and the cups driver by using the 'cupsaddsmb' tool. This requires the
# installation of the CUPS driver (http://www.cups.org/windows.php)
# on the server, but doesn't require you to use Windows at all :-).
[print$]
path = /var/lib/samba/printers
write list = @adm root
guest ok = yes
inherit permissions = yes
# Settings suitable for Winbind:
# write list = @"Domain Admins" root
# force group = +@"Domain Admins"
# A useful application of samba is to make a PDF-generation service
# To streamline this, install windows postscript drivers (preferably colour)
# on the samba server, so that clients can automatically install them.
# Note that this only works if 'printing' is *not* set to 'cups'
[pdf-gen]
path = /var/tmp
printable = Yes
comment = PDF Generator (only valid users)
printing = bsd
#print command = /usr/share/samba/scripts/print-pdf file path win_path recipient IP &
print command = /usr/share/samba/scripts/print-pdf "%s" "%H" "//%L/%u" "%m" "%I" "%J" &
lpq command = /bin/true
[VIDEO]
path = /home/manu/Vidéo/
comment = test
guest ok = yes
read only = no
valid users = manu
case sensitive = no
msdfs proxy = no
[homes]
comment = Home Directories
guest ok = yes
[WOW_FIX]
path = /home/manu/wow_fix/
guest ok = yes
guest account = manu
hide files = wow.sh~/
case sensitive = no
guest only = yes
msdfs proxy = no


