Désoler du retard, j'ai refais à zéro la configuration du serveur.
Voilà la liste des commandes que j'ai exécuté :
Code : Tout sélectionner
yum install samba -y
chkconfig smb on
chkconfig nmb on
mkdir /raid0/partage/
mkdir /raid0/partage/backupVM
mkdir /raid0/partage/backupPC
chmod 777 /raid0/partage/backup{VM,PC}
cp /etc/samba/smb.conf /root/smb.conf.original
vi /etc/samba/smb.conf
service smb start
adduser technicien
passwd technicien
pdbedit -a -u technicien
service smb restart
testparm -s
firewall-cmd --permanent --zone=public --add-service=samba
firewall-cmd --reload
vi /etc/hosts
chown technicien.technicien /raid0/partage/backup{VM,PC}
Ma configuration est actuellement :
/etc/samba/smb.conf
Code : Tout sélectionner
# See smb.conf.example for a more detailed config file or
# read the smb.conf manpage.
# Run 'testparm' to verify the config is correct after
# you modified it.
[global]
netbios name = NAS-Vernier
workgroup = WORKGROUP
server string = %h server (Samba, CentOS)
security = user
passdb backend = tdbsam
load printers = no
disable spoolss = Yes
hosts allow = 127.0.0.1 192.168.1.0/24
log file = /var/log/samba/log.%m
max log size = 1000
interfaces = eno1 lo
bind interfaces only = yes
[backupVM]
path = /raid0/partage/backupVM
comment = Partage pour stocker saves VM
public = yes
writeable = yes
browseable = yes
valid users = technicien
printable = no
[backupPC]
path = /raid0/partage/backupPC
comment = Partage pour stocker saves PC
public = yes
writeable = yes
browseable = yes
valid users = technicien
printable = no
/etc/hosts
Sinon en désactivant le pare-feu, je peux me connecter sur le serveur en passant par l'explorateur réseau de Windows, je vois les 2 partages, mais impossible d'y accéder : "Windows ne peut pas accéder à \\NAS-Vernier\backupPC .... Vous ne disposez peut-être pas des autorisations ..."