Koozali.org: home of the SME Server

Partage samba avec windows 10

Offline adili

  • *
  • 27
  • +0/-0
Partage samba avec windows 10
« on: September 23, 2021, 04:02:24 PM »
Bonjour,
Depuis la migration vers smeserver V10 (server seulement sans dhcp), il m'est impossible de me connecter sur le serveur avec le protocol smb, j'utilise cette fonction pour les développements web avec Sublime text.
J'ai testé avec une version 9.2 que j'ai gardé en VM, la connexion fonctionne j'en conclu donc que ce n'est pas ma config windows qui pose problème.
J'ai aussi testé avec ubuntu 20.04 avec  samba server et client installés, message : connexion refusée.
Pour info ci-dessous le status smb de mon server
Code: [Select]
systemctl status smb
● smb.service - Samba SMB Daemon global service for Koozali SME Server
   Loaded: loaded (/usr/lib/systemd/system/smb.service; enabled; vendor preset: enabled)
  Drop-In: /usr/lib/systemd/system/smb.service.d
           └─50koozali.conf
   Active: active (exited) since jeu. 2021-09-23 15:47:17 CEST; 13s ago
     Docs: man:smbd(8)
           man:samba(7)
           man:smb.conf(5)
  Process: 5381 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
  Process: 5378 ExecStartPre=/sbin/e-smith/expand-template /etc/samba/smbusers (code=exited, status=0/SUCCESS)
  Process: 5375 ExecStartPre=/sbin/e-smith/expand-template /etc/samba/smb.conf (code=exited, status=0/SUCCESS)
  Process: 5369 ExecStartPre=/sbin/e-smith/service-status smb (code=exited, status=0/SUCCESS)
 Main PID: 5381 (code=exited, status=0/SUCCESS)

Merci de votre aide


Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: Partage samba avec windows 10
« Reply #1 on: September 23, 2021, 04:49:27 PM »
1. Please read multiple threads here on SMB1/2/3

2. Try

Code: [Select]
systemctl status smbd
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline adili

  • *
  • 27
  • +0/-0
Re: Partage samba avec windows 10
« Reply #2 on: September 23, 2021, 05:52:01 PM »
Effectivement smbd n'était pas activé, après systemctl start smbd c'est OK.
Ce deamon n'est pas lancé au démarrage du server?

Merci pour cette réponse rapide

Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: Partage samba avec windows 10
« Reply #3 on: September 23, 2021, 09:00:50 PM »
I do not know why this would happen.

Please show:

Code: [Select]
config show smbd
Code: [Select]
config show smb
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline adili

  • *
  • 27
  • +0/-0
Re: Partage samba avec windows 10 [résolu]
« Reply #4 on: September 24, 2021, 07:21:03 AM »
Tout est correct maintenant, après un redémarrage smbd est bien activé
Status smbd
Code: [Select]
smbd=service
    TCPPorts=139,445
    access=private
    status=enabled

Merci pour tout

Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: Partage samba avec windows 10
« Reply #5 on: September 24, 2021, 08:51:46 AM »
You missed

Code: [Select]
config show smb
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline adili

  • *
  • 27
  • +0/-0
Re: Partage samba avec windows 10
« Reply #6 on: September 24, 2021, 11:32:09 AM »
Code: [Select]
smb=service
    DeadTime=10080
    KeepVersions=disabled
    OpLocks=enabled
    OsLevel=35
    RecycleBin=disabled
    RoamingProfiles=no
    ServerName=sme-andre
    ServerRole=WS
    ShadowCount=10
    ShadowDir=/home/e-smith/files/.shadow
    UnixCharSet=UTF8
    UseClientDriver=yes
    Workgroup=DILIGENT
    status=enabled

Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: Partage samba avec windows 10
« Reply #7 on: September 24, 2021, 04:39:12 PM »
1. Please read multiple threads here on SMB1/2/3

systemctl status smbd

As I stated above....

Code: [Select]
systemctl status smbd
● smbd.service - Samba SMB Daemon
   Loaded: loaded (/usr/lib/systemd/system/smbd.service; enabled; vendor preset: enabled)
   Active: active (running) since Wed 2021-08-25 10:06:25 CEST; 4 weeks 2 days ago
etc.........

If it is active then smbd is running correctly.

You can't browse because of SMB3

Please read elsewhere in the forums for long threads on this and how to get around it.

You will probably end up here:

https://wiki.koozali.org/Wsdd
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Online Jean-Philippe Pialasse

  • *
  • 2,744
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Partage samba avec windows 10
« Reply #8 on: September 25, 2021, 05:51:46 PM »
le fait que le service etait désactivé n’est pas attendu sans intervention de ta part ou restoration avec cette valeur.

activer le service dabs la db ne suffit pas. il faut ensuite regenerer  les fichiers systemd puis relancer le service. un event comme remoteaccess-update devrait le faire.


comme le dit reetp par defaut SME utilise smb3 comme protocol. smb1 est non sécuritaire depuis quelques années maintenant. Ubuntu a jour devrait fonctionner en exigeant smb2 ou smb3. des win recent aussi.  sauf si tu as fait des modifications pour utiliser seulement smb1 ce qui devrait etre découragé sauf pour un besoin particulier : profils itinerants en acceptant les risques.