Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
matos:qnap:services:smb [17/03/2021 11:34] thierry [SMB : Partage de fichier Microsoft / QNAP] |
matos:qnap:services:smb [17/03/2021 18:46] (Version actuelle) thierry [Service SMB] |
||
---|---|---|---|
Ligne 5: | Ligne 5: | ||
* L'adresse IP de notre NAS est ''192.168.1.19'' | * L'adresse IP de notre NAS est ''192.168.1.19'' | ||
</note> | </note> | ||
- | == Connexion ? == | + | ==== Sur le NAS ==== |
+ | |||
+ | |||
+ | === Configuration === | ||
+ | Vérifier la configuration sur l'interface Web d'administration du NAS. | ||
+ | |||
+ | {{:matos:qnap:services:smb1.png?direct&600|}} | ||
+ | |||
+ | {{:matos:qnap:services:smb2.png?direct&600|}} | ||
+ | |||
+ | === Service SMB === | ||
+ | Se connecter en [[matos:qnap:services:ssh|SSH/Admin]] | ||
+ | |||
+ | Commande => ''/etc/init.d/smb.sh restart'' | ||
+ | <code> | ||
+ | [~] # [~] # /etc/init.d/smb.sh restart | ||
+ | Restarting SMB services: | ||
+ | Shutting down SMB services: smbd smbd-notifyd cleanupd mdssd-master mdssd-child nmbd. | ||
+ | Shutting down winbindd services: winbindd. | ||
+ | locks path was set to /share/CACHEDEV1_DATA/.locks | ||
+ | Starting SMB services:Shutting down winbindd services: winbindd. | ||
+ | Starting winbindd services:. | ||
+ | done. | ||
+ | [~] # | ||
+ | </code> | ||
+ | ==== Sur le PC ==== | ||
+ | === Vérifier la connexion ? === | ||
Notre PC et notre NAS se voient ils sur le réseau ? | Notre PC et notre NAS se voient ils sur le réseau ? | ||
<code> | <code> | ||
Ligne 18: | Ligne 44: | ||
Minimum = 0ms, Maximum = 0ms, Moyenne = 0ms | Minimum = 0ms, Maximum = 0ms, Moyenne = 0ms | ||
</code> | </code> | ||
+ | === Voir les version de SMB activées === | ||
+ | == SMB v1 == | ||
+ | Avec Powershell en mode Admin | ||
+ | |||
+ | Vérifier si il est activé : | ||
+ | |||
+ | <code powershell> | ||
+ | PS C:\> Get-WindowsOptionalFeature -Online -FeatureName SMB1Protocol | select State | ||
+ | |||
+ | State | ||
+ | ----- | ||
+ | Disabled | ||
+ | </code> | ||
+ | |||
+ | Pour l'activer : | ||
+ | <code powershell> | ||
+ | Enable-WindowsOptionalFeature -Online -FeatureName smb1protocol | ||
+ | </code> | ||
+ | Pour le désactiver: (Le PC doit redémarrer...) | ||
+ | <code powershell> | ||
+ | Disable-WindowsOptionalFeature -Online -FeatureName smb1protocol | ||
+ | </code> | ||
+ | == SMB v2/v3 == | ||
+ | Pour SMB v2 et v3 toujours avec Powershell en mode Admin | ||
+ | <code powershell> | ||
+ | PS C:\> Get-SmbServerConfiguration | Select EnableSMB2Protocol | ||
+ | |||
+ | EnableSMB2Protocol | ||
+ | ------------------ | ||
+ | True | ||
+ | </code> | ||
+ | Pour l'activer : | ||
+ | <code powershell> | ||
+ | Set-SmbServerConfiguration -EnableSMB2Protocol $true | ||
+ | </code> | ||
+ | Pour le désactiver : | ||
+ | <code powershell> | ||
+ | Set-SmbServerConfiguration -EnableSMB2Protocol $false | ||
+ | </code> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
===== Sources & Ressources ===== | ===== Sources & Ressources ===== | ||
==== Vrac... à confirmer ==== | ==== Vrac... à confirmer ==== | ||
Ligne 24: | Ligne 94: | ||
* [[https://www.qnap.com/fr-fr/how-to/faq/article/pourquoi-ne-puis-je-pas-trouver-mon-nas-dans-lexplorateur-de-fichiers-windows-apr%C3%A8s-avoir-install%C3%A9-la-mise-%C3%A0-jour-fall-creators-update-de-windows-10-version-1709]] | * [[https://www.qnap.com/fr-fr/how-to/faq/article/pourquoi-ne-puis-je-pas-trouver-mon-nas-dans-lexplorateur-de-fichiers-windows-apr%C3%A8s-avoir-install%C3%A9-la-mise-%C3%A0-jour-fall-creators-update-de-windows-10-version-1709]] | ||
* [[https://docs.aws.amazon.com/fr_fr/storagegateway/latest/userguide/using-smb-fileshare.html]] | * [[https://docs.aws.amazon.com/fr_fr/storagegateway/latest/userguide/using-smb-fileshare.html]] | ||
+ | * [[https://www.malekal.com/le-groupe-de-travail-windows-workgroup-pour-partager-ses-fichiers/]] | ||
+ | * [[https://www.malekal.com/activer-desactiver-smb-windows/]] | ||