Voici un exemple de configuration de Samba, pour
- partager simplement son dossier /var/www/
- sans authentification et
- avec les droits d'écritures avec le user : www-data
Testé sous Debian 6.
Ficher /etc/samba/smb.conf
#======================= Global Settings ======================= [global] ## Browsing/Identification ### # Change this to the workgroup/NT-domain name your Samba server will part of workgroup = WORKGROUP # server string is the equivalent of the NT Description field server string = %h server # mapping guest to www-data account guest account = www-data # This will prevent nmbd to search for NetBIOS names through DNS. dns proxy = no #### Debugging/Accounting #### # This tells Samba to use a separate log file for each machine # that connects log file = /var/log/samba/log.%m # Cap the size of the individual log files (in KiB). max log size = 1000 # Do something sensible when Samba crashes: mail the admin a backtrace panic action = /usr/share/samba/panic-action %d ####### Authentication ####### # To not required a Unix User security = share #======================= Share Definitions ======================= [www] comment = wwwroot_folder path = /var/www/ browseable = yes read only = no guest ok = yes locking = yes public = yes only guest = yes writable = yes
Ne pas oublier de faire un /etc/init.d/samba restart pour que les changements soient pris en compte