créer un utilisateur si il n'existe pas adduser user1 (ajouter l'option --no-create-home, si on ne souhaite pas de dossier personnel), puis créer un mot de passe samba (smbpasswd -a user1) puis renseigner le/les partages dans /etc/samba/smb.conf , redémarrer le service. [PARTAGE] (nom de partage) comment = partage dossiers perso (commentaire) path = /mnt/disque/dossier (emplacement de partage point de montage) valid users = user1, user2 (utilisateur autorisés) browseable = yes (navigable yes/no) read only = yes (ecriture seuleument yes/no) writable = no (droit ecriture yes/no) directory mask = 0755 create mask = 0755 ################################################################### ====> smbpasswd -a user1 ====> systemctl restart smbd ====> systemctl restart nmbd ====< service samba restart ===>ou = service smbd restart sudo /etc/init.d/smbd restart sudo /etc/init.d/samba restart [80gig] path = /mnt/80gig/00_Séries/ comment = séries valid users = @compaq browseable = yes read only = no writable = yes directory mask = 0770 create mask = 0770 [videos] comment = Samba sur videos path = /chemin/vers/dossier/videos valid users = nom_utilisateur browseable = yes read only = no writable = yes directory mask = 0755 create mask = 0755 #[cq56SAMBA-Maxtor160-films] # comment = Samba cq56 maxtor 160gig # path = /mnt/maxtor160/VIDEOS # valid users = cq56, @cq56, eulalie, linaelle # browseable = yes # read only = yes # writable = no # directory mask = 0750 # create mask = 0750 [HD-HCU2] comment = Series HD-HCU2 path = /mnt/HD-HCU2/FILMS_hd-hcu2/SERIES browseable = yes read only = yes guest ok = yes create mask = 0755 directory mask = 0755 [300gigFilms] comment = Samba compaq 300gig path = /mnt/300gig/Vidéos/FILMS/ valid users = compaq browseable = yes read only = yes writable = no directory mask = 0750 create mask = 0750 [1000gigAC3] comment = Samba compaq 1000gig path = /mnt/1000gig/FILMS-AC3/ valid users = compaq browseable = yes read only = yes writable = no directory mask = 0750 create mask = 0750