logo Debian Debian Debian-France Debian-Facile Debian-fr.org Forum-Debian.fr Debian ? Communautés logo inclusivité

Debian-facile

Bienvenue sur Debian-Facile, site d'aide pour les nouveaux utilisateurs de Debian.

Vous n'êtes pas identifié(e).

#1 31-10-2017 16:17:55

joffrey575
Membre
Distrib. : Debian Bullseye
Inscription : 19-12-2016

Serveur samba linux/windows

Bonjour à tous,

J'ai mis en oeuvre un serveur samba qui est accessible depuis linux et non windows.

Que dois-je modifier pour obtenir une accessibilité depuis les deux OS ?

Mon disque dur est de type ext4 mais on m'a parlé du paquet

Merci par avance.

Hors ligne

#2 31-10-2017 20:20:40

Croutons
Membre
Distrib. : Debian12
Noyau : Linux 6.1.0-13-amd64
(G)UI : Fluxbox(NakeDeb)
Inscription : 16-12-2016

Re : Serveur samba linux/windows

Bonjour
Windows ne lit pas les disque en ext4, il existe des logiciels qui permettent de lire des disque en ext4 sous windows
mais je pense pas que ce soit compatible avec ton serveur
Le mieux serait d'avoir une partition en NTFS

-->les cahiers du debutant<--      WikiDF-->Découvrir les principales commandes Linux<-- 
L' expérience, c'est le nom que chacun donne à ses erreurs. Oscar Wilde

Hors ligne

#3 31-10-2017 22:58:41

tatave
Membre
Lieu : France-Belgique
Distrib. : Debian / Pfsense / esxi / hyper-v
Noyau : debian / windows Srv
(G)UI : aucun
Inscription : 23-06-2014

Re : Serveur samba linux/windows

Salut salut

Premier point
Samba est un service de partage de fichiers sur les reseaux locaux il s'appuie sur le système de fichier de l'os qui le propose (linux, macos, bsd...)

Deuxieme point
Tu dis qu'il est visible sous linux.
Mais d'ou ?
Depuis le serveur s'il y a une interface graphique normal je dirais, c'est la meme que si tu ne partageais qu'à toi meme et pas aux autres tes fichiers.

Troisieme point
tu n'as pas acces au fichier depuis ton windows , la aussi cela peut se comprendre si tu ne mets pas les autorisations en lecture, ecriture, exécution pour y et pas pour x, il en va de meme dans le monde windows, ils font a de faible différence la meme chose si on y regarde vite ^^ (autre débat qui n'est pas mon but ici)

sauf erreur j'ai crois me souvenir qu'il y a un wiki ici qui traite du sujet ( je n'ai pas pris le temps fouiner plus que cela il se fait tard pour)

++

1 Cluster Pare-feu sous Pfsense 2.3.x (2wan,1wifi,1dmz,1lan)
1 Cluster Data center maison sous debian en cours de refonte
2 Cluster Labo de Virtualisation 1 sous esxi et 1 sous hyper-v
----- vm prod debian, windows serveur 2012/2016, freebsd

Hors ligne

#4 01-11-2017 01:40:04

smolski
quasi...modo
Lieu : AIN
Distrib. : backports (buster) 10
Noyau : Linux 4.19.0-8-amd64
(G)UI : gnome
Inscription : 21-10-2008

Re : Serveur samba linux/windows

tatave a écrit :

il y a un wiki ici qui traite du sujet


Là :
https://debian-facile.org/atelier:chant … age-reseau smile


saque eud dun (patois chtimi : fonce dedans)

Hors ligne

#5 02-11-2017 13:21:29

joffrey575
Membre
Distrib. : Debian Bullseye
Inscription : 19-12-2016

Re : Serveur samba linux/windows

Modification à apporter pour dialogue entre client windows et serveur samba :

1-Version de windows server : 2003, 2008, 2008 R2 ?

https://blogs.technet.microsoft.com/...s-file-server/

SMB2 (technically SMB2 version 2.002) which is the version on Windows Vista SP1 (or later SP) and Windows Server 2008 (or any SP)

SMB2.1 (technically SMB2 version 2.1) which is the version on Windows 7 (or any SP) and Windows Server 2008 R2 (or any SP)

2-Choisir le protocole SMB approprié vis à vis de la version samba :

*SMB 1 introduced in DOS days, and was also called CIFS in its later version (think of it like SMB 1.1). First versions of Samba 1.x supported SMB and CIFS
*SMB 2.0 / SMB2.02 introduced with Windows Vista/2008 is supported with Samba 3.6
*SMB 2.1 introduces with Windows 7 / Windows 2008 R2 is supported with Samba 4.0.0
*SMB 3.0 introduced with Windows 8 / Windows 2012 is supported by Samba 4.2
*SMB 3.02 introduced in Windows 8.1 / Windows 2012 R2 is not yet supported by any version of Samba (its in the works I assume)
*SMB 3.11 introduced in Windows 10 is not yet supported by any version of Samba (its in the works I assume)

2bis-Désactivation du client SMBv1 avec la stratégie de groupe ?? :


3-Activer/désactiver le protocole LM/NTML :

LmCompatibilityLevel

0 Clients use LM and NTLM authentication, but they never use NTLMv2 session security. Domain controllers accept LM, NTLM, and NTLMv2 authentication.

1 Clients use LM and NTLM authentication, and they use NTLMv2 session security if the server supports it. Domain controllers accept LM, NTLM, and NTLMv2 authentication.

2 Clients use only NTLM authentication, and they use NTLMv2 session security if the server supports it. Domain controller accepts LM, NTLM, and NTLMv2 authentication.

3 Clients use only NTLMv2 authentication, and they use NTLMv2 session security if the server supports it. Domain controllers accept LM, NTLM, and NTLMv2 authentication.

4 Clients use only NTLMv2 authentication, and they use NTLMv2 session security if the server supports it. Domain controller refuses LM authentication responses, but it accepts NTLM and NTLMv2.

5 Clients use only NTLMv2 authentication, and they use NTLMv2 session security if the server supports it. Domain controller refuses LM and NTLM authentication responses, but it accepts NTLMv2.


4-Security signature des mots de passes

*enabling LM and NTLM hashes to be as part of the security policy are Network security: LAN Manager authentication level Send LM & NTLM responses
*changing the 【HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa \【LmCompatibilityLevel 】 value of the registry key to 0 as per here
*Adding the following parameters to LanmanWorkStation and NetLogon in the registry HKLM\System\CCS\Services\LanmanWorkstation\Parameters DWORD DomainCompatibilityMode = 1 DWORD DNSNameResolutionRequired = 0
*HKLM\System\CCS\Services\Netlogon\Parameters DWORD RequireSignOnSeal = 0 DWORD RequireStrongKey = 0


5-Configurer le domain controller accept ??


6-Configurer le groupe résidentiel & centre de réseau et partage


7-Tenter la connexion :

NET USE Z:\\NOM_SERV\Folder_Share MDP_userX /user:userX

NET USE Y: \\SERVEUR\Parents mot_passe_samba_parent1 /user:parent1

Ou net view

Client linux ou macos : smb://ip_serveur/chemin/du/dossier


Compatibilité SMB et serveur samba

• SMB 1 introduced in DOS days, and was also called CIFS in its later version (think of it like SMB 1.1). First versions of Samba 1.x supported SMB and CIFS
• SMB 2.0 / SMB2.02 introduced with Windows Vista/2008 is supported with Samba 3.6
• SMB 2.1 introduces with Windows 7 / Windows 2008 R2 is supported with Samba 4.0.0
• SMB 3.0 introduced with Windows 8 / Windows 2012 is supported by Samba 4.2
• SMB 3.02 introduced in Windows 8.1 / Windows 2012 R2 is not yet supported by any version of Samba (its in the works I assume)
• SMB 3.11 introduced in Windows 10 is not yet supported by any version of Samba (its in the works I assume)


A moins qu'il n'y ai autre chose, je ne vois pas, ...


Serveur vue sur le réseau

Comment s'assurer qu'un serveur soit vu sur le réseau ?

Le serveur est vu sur le réseau avec un client debian mais non un client Windows.

Ce serait donc bien cet histoire de protocole SMB qui serait la cause de ceci ?

Hors ligne

Pied de page des forums