Outils pour utilisateurs

Outils du site


Panneau latéral

linux:samba (lu 29493 fois)

Ceci est une ancienne révision du document !


SAMBA

Faire un partage windows sur un serveur debian avec un mot de passe.

Installer les paquets samba et samba-common

Entrez le nom de votre groupe de travail WORKGROUP ou autre…

Répondez NON à la question sur winbind..

Créons un utilisateur.

smbpasswd -a toto

Editer le fichier /etc/samba/smb.conf

Decommenter le security user

# "security = user" is always a good idea. This will require a Unix account
# in this server for every user accessing the server. See
# /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html
# in the samba-doc package for details.
   security = user

Partagez votre répertoire

#======================= Share Definitions =======================

[homes]
   comment = Home Directories
   path = /home/toto/PARTAGE
   browseable = no

# By default, the home directories are exported read-only. Change next
# parameter to 'yes' if you want to be able to write to them.
   writable = yes

# File creation mask is set to 0700 for security reasons. If you want to
# create files with group=rw permissions, set next parameter to 0775.
   create mask = 0700

# Directory creation mask is set to 0700 for security reasons. If you want to
# create dirs. with group=rw permissions, set next parameter to 0775.
   directory mask = 0700

# Restrict access to home directories
# to the one of the authenticated user
# This might need tweaking when using external authentication schemes
   valid users = toto

Redémarrez samba

/etc/init.d/samba restart

et sur windows, Démarrer → Exécuter…

\\votre_serveur

entrez votre toto et mot de passe et zou !!!

linux/samba.1237297345.txt.gz · Dernière modification: 04-04-2013 22:05 (modification externe)