Here is my configuration file (smb.conf)
----------------------------------------------------------------------- # /etc/samba/smb.conf [global] workgroup = Laselec realm = lan netbios name = Aneto server string = Serveur ANETO admin users = @domadmin encrypt passwords = true logon path = \\%N\profiles\%U logon script = logon.bat logon drive = hosts allow = 192.168.0. 127. EXCEPT 192.168.0.254 veto oplock files = /*.xls/ log file = /var/log/samba/log.%m log level = 1
# Action a effectuer quand un probleme survient panic action = /usr/share/samba/panic-action %d
# Parametres pour PDC security = user local master = yes domain master = yes prefered master = yes domain logons = yes wins support = yes os level = 34 time server = yes socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE
# Synchroniser les mots de passe samba et unix
unix password sync = yes
passwd chat = *new*UNIX*password* %n\n *Retype*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
# Nouveau
passwd chat = "*Enter\snew\sUNIX\spassword:*" %n\n "*Retype\snew\sUNIX\spassword:*" %n\n "passwd: password updated successfully*"
pam password change = yes
passwd chat debug = yes
obey pam restrictions = yes
# Base de donnee des comptes passdb backend = tdbsam
# Scripts et appels externes
add machine script = /usr/sbin/useradd -d /dev/null -g domstations -s /bin/false -M %u
add user script = /usr/sbin/useradd -g domusers -s /bin/false %u
add group script = /usr/sbin/groupadd %g
add user to group script = /usr/sbin/usermod -G %g %u
delete user from group script = /usr/sbin/gpasswd -d %u %g
delete user script = /usr/sbin/userdel -r %u
delete group script = /usr/sbin/groupdel %g
# passwd program = /usr/bin/passwd %U
#[homes] # writable = yes # browseable = no # comment = Users' home directories
[netlogon] path = /var/lib/samba/netlogon read only = yes guest ok = yes locking = no write list = @domadmin comment = Network Logon Service browseable = no
[profiles] path = /home/profiles read only = no create mask = 0600 directory mask = 0700 browsable = no comment = Profile Share hide files = /desktop.ini/ntuser.ini/NTUSER.*/ write list = @domusers
[Technique] path = /home/data/Technique read only = no comment = Services Techniques write list = @technique force group = technique create mask = 0774 force create mode = 0774 directory mask = 0775 force directory mode = 0775
[Commercial] path = /home/data/Commercial read only = no comment = Service Commercial write list = @commercial forcegroup = commercial create mask = 0774 force create mode = 0774 directory mask = 0774 force directory mode = 0774
[Informatique] path = /home/data/Informatique read only = no comment = Service Informatique write list = @informatique force group = informatique create mask = 0770 force create mode = 0770 directory mask = 0770 force directory mode = 0770
[Administrati] path = /home/data/Administration read only = no comment = Service Administratif write list = @administratif force group = administratif create mask = 0770 force create mode = 0770 directory mask = 0770 force directory mode = 0770
[Echange] path=/home/data/Echange read only = no comment = Zone Echange force group = domusers create mask = 0770 force create mode = 0770 directory mask = 0770 force directory mode = 0770
[BackupArch] path=/home/data/BackupArchives read only = no comment = Archives de SERVEUR force group = domusers create mask = 0770 force create mode = 0770 directory mask = 0770 force directory mode = 0770
[Bureautique] path=/home/data/Bureautique read only = no comment = GPAO force group = domusers create mask = 0770 force create mode = 0770 directory mask = 0770 force directory mode = 0770 -----------------------------------------------------------------------
I hope it will help.
Best Regards, -- Olivier LARRIGAUDIERE LASELEC S.A.
begin:vcard fn:Olivier LARRIGAUDIERE n:LARRIGAUDIERE;Olivier org:LASELEC S.A. adr:BP 1205;;105, Avenue du Gal Eisenhower;TOULOUSE;;31037;FRANCE email;internet:[EMAIL PROTECTED] tel;work:00 33 5 61 19 46 46 tel;fax:00 33 5 61 19 46 44 x-mozilla-html:FALSE url:http://www.laselec.com version:2.1 end:vcard