19janv.2012
Accéder à une VM debian via samba
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
Commentaires
jeudi 26 janvier 2012 | 08:22
Salut Gauthier,
Si ta VM est en local, pas besoin de faire ça, il suffit d'utiliser Oracle Virtual Box plutôt que VM Ware.
Dans virtual box, tu peux partager des répertoire directement (et donc pas de config samba) juste un petit mount à faire au début.
mercredi 1 février 2012 | 13:56
Marche du premier coup sans problème. Excellent !