#1 Le 27/07/2018, à 12:20
- heronheronpetitpatapon
Reseau Xubuntu windows 10 problème avec Samba [RESOLU]
[RESOLU]Bonjour à tous,
Je cherche à ce qu'un pc sous Xubunut communique avec le reseau locale NAS sous windows 10. Avant d'installer Xubuntu, j'avais testé en Live l'OS et j'ai installé Samba, tout fonctionnait impeccablement.
Une fois Xubuntu installé en dur, j'ai installé Samba et lors de l'installation j'ai une drôle de ligne qui s'affiche dans le terminale !
voici la ligne incriminée :
Failed to preset unit: Unit file /etc/systemd/system/samba-ad-dc.service is masked.
Retour de l'installation de Samba.
caroline@caroline-Lenovo-Yoga-300-11IBR:~$ sudo apt-get install samba
[sudo] Mot de passe de caroline :
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
Paquets suggérés :
bind9 bind9utils ctdb ldb-tools ntp | chrony smbldap-tools winbind
Les NOUVEAUX paquets suivants seront installés :
samba
0 mis à jour, 1 nouvellement installés, 0 à enlever et 0 non mis à jour.
Il est nécessaire de prendre 0 o/855 ko dans les archives.
Après cette opération, 11,2 Mo d'espace disque supplémentaires seront utilisés.
Sélection du paquet samba précédemment désélectionné.
(Lecture de la base de données... 225876 fichiers et répertoires déjà installés.)
Préparation du dépaquetage de .../samba_2%3a4.7.6+dfsg~ubuntu-0ubuntu2_amd64.deb ...
Dépaquetage de samba (2:4.7.6+dfsg~ubuntu-0ubuntu2) ...
Traitement des actions différées (« triggers ») pour ufw (0.35-5) ...
Traitement des actions différées (« triggers ») pour ureadahead (0.100.0-20) ...
ureadahead will be reprofiled on next reboot
Traitement des actions différées (« triggers ») pour libc-bin (2.27-3ubuntu1) ...
Traitement des actions différées (« triggers ») pour systemd (237-3ubuntu10.3) ...
Traitement des actions différées (« triggers ») pour man-db (2.8.3-2) ...
Paramétrage de samba (2:4.7.6+dfsg~ubuntu-0ubuntu2) ...
Samba is not being run as an AD Domain Controller, masking samba-ad-dc.service.
Please ignore the following error about deb-systemd-helper not finding samba-ad-dc.service.
Created symlink /etc/systemd/system/multi-user.target.wants/nmbd.service → /lib/systemd/system/nmbd.service.
Failed to preset unit: Unit file /etc/systemd/system/samba-ad-dc.service is masked.
/usr/bin/deb-systemd-helper: error: systemctl preset failed on samba-ad-dc.service: No such file or directory
Created symlink /etc/systemd/system/multi-user.target.wants/smbd.service → /lib/systemd/system/smbd.service.
Traitement des actions différées (« triggers ») pour libc-bin (2.27-3ubuntu1) ...
Traitement des actions différées (« triggers ») pour systemd (237-3ubuntu10.3) ...
Traitement des actions différées (« triggers ») pour ureadahead (0.100.0-20) ...
Traitement des actions différées (« triggers ») pour ufw (0.35-5) ...
caroline@caroline-Lenovo-Yoga-300-11IBR:~$
Et fois l'installation faite je clique sur le réseau pour le lancer et j'ai le message suivant qui s'affiche :
Impossible d'ouvrir le reseau Windows L’obtention de la liste des partages du serveur a échoué : Aucun fichier ou dossier de ce type.
Merci de vote aide et de vos lumières.
heronheronpetitpatapon
Dernière modification par heronheronpetitpatapon (Le 27/07/2018, à 17:26)
...Ubuntu Rocks....
Hors ligne
#2 Le 27/07/2018, à 12:32
- heronheronpetitpatapon
Re : Reseau Xubuntu windows 10 problème avec Samba [RESOLU]
EDIT n 1. je viens de reinstaller Samba sur une session live de Xubuntu 18.04 et bizzarement tout fonctionne.
Voila le retour de l installation de samba sur Xubuntu 1804 live
xubuntu@xubuntu:~$ sudo apt-get install samba
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
attr ibverbs-providers libcephfs2 libibverbs1 libnl-route-3-200 librados2
python-dnspython samba-dsdb-modules samba-vfs-modules tdb-tools
Suggested packages:
bind9 bind9utils ctdb ldb-tools ntp | chrony smbldap-tools winbind
The following NEW packages will be installed:
attr ibverbs-providers libcephfs2 libibverbs1 libnl-route-3-200 librados2
python-dnspython samba samba-dsdb-modules samba-vfs-modules tdb-tools
0 upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
Need to get 4934 kB of archives.
After this operation, 29.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://archive.ubuntu.com/ubuntu bionic/main amd64 python-dnspython all 1.15.0-1 [84.9 kB]
Get:2 http://archive.ubuntu.com/ubuntu bionic/main amd64 tdb-tools amd64 1.3.15-2 [22.4 kB]
Get:3 http://archive.ubuntu.com/ubuntu bionic/main amd64 samba amd64 2:4.7.6+dfsg~ubuntu-0ubuntu2 [855 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic/main amd64 attr amd64 1:2.4.47-2build1 [25.8 kB]
Get:5 http://archive.ubuntu.com/ubuntu bionic/main amd64 libnl-route-3-200 amd64 3.2.29-0ubuntu3 [146 kB]
Get:6 http://archive.ubuntu.com/ubuntu bionic/main amd64 libibverbs1 amd64 17.1-1 [44.4 kB]
Get:7 http://archive.ubuntu.com/ubuntu bionic/main amd64 ibverbs-providers amd64 17.1-1 [160 kB]
Get:8 http://archive.ubuntu.com/ubuntu bionic/main amd64 librados2 amd64 12.2.4-0ubuntu1 [2647 kB]
Get:9 http://archive.ubuntu.com/ubuntu bionic/main amd64 libcephfs2 amd64 12.2.4-0ubuntu1 [407 kB]
Get:10 http://archive.ubuntu.com/ubuntu bionic/main amd64 samba-dsdb-modules amd64 2:4.7.6+dfsg~ubuntu-0ubuntu2 [245 kB]
Get:11 http://archive.ubuntu.com/ubuntu bionic/main amd64 samba-vfs-modules amd64 2:4.7.6+dfsg~ubuntu-0ubuntu2 [297 kB]
Fetched 4934 kB in 2s (2172 kB/s)
Selecting previously unselected package python-dnspython.
(Reading database ... 153359 files and directories currently installed.)
Preparing to unpack .../00-python-dnspython_1.15.0-1_all.deb ...
Unpacking python-dnspython (1.15.0-1) ...
Selecting previously unselected package tdb-tools.
Preparing to unpack .../01-tdb-tools_1.3.15-2_amd64.deb ...
Unpacking tdb-tools (1.3.15-2) ...
Selecting previously unselected package samba.
Preparing to unpack .../02-samba_2%3a4.7.6+dfsg~ubuntu-0ubuntu2_amd64.deb ...
Unpacking samba (2:4.7.6+dfsg~ubuntu-0ubuntu2) ...
Selecting previously unselected package attr.
Preparing to unpack .../03-attr_1%3a2.4.47-2build1_amd64.deb ...
Unpacking attr (1:2.4.47-2build1) ...
Selecting previously unselected package libnl-route-3-200:amd64.
Preparing to unpack .../04-libnl-route-3-200_3.2.29-0ubuntu3_amd64.deb ...
Unpacking libnl-route-3-200:amd64 (3.2.29-0ubuntu3) ...
Selecting previously unselected package libibverbs1:amd64.
Preparing to unpack .../05-libibverbs1_17.1-1_amd64.deb ...
Unpacking libibverbs1:amd64 (17.1-1) ...
Selecting previously unselected package ibverbs-providers:amd64.
Preparing to unpack .../06-ibverbs-providers_17.1-1_amd64.deb ...
Unpacking ibverbs-providers:amd64 (17.1-1) ...
Selecting previously unselected package librados2.
Preparing to unpack .../07-librados2_12.2.4-0ubuntu1_amd64.deb ...
Unpacking librados2 (12.2.4-0ubuntu1) ...
Selecting previously unselected package libcephfs2.
Preparing to unpack .../08-libcephfs2_12.2.4-0ubuntu1_amd64.deb ...
Unpacking libcephfs2 (12.2.4-0ubuntu1) ...
Selecting previously unselected package samba-dsdb-modules.
Preparing to unpack .../09-samba-dsdb-modules_2%3a4.7.6+dfsg~ubuntu-0ubuntu2_amd64.deb ...
Unpacking samba-dsdb-modules (2:4.7.6+dfsg~ubuntu-0ubuntu2) ...
Selecting previously unselected package samba-vfs-modules.
Preparing to unpack .../10-samba-vfs-modules_2%3a4.7.6+dfsg~ubuntu-0ubuntu2_amd64.deb ...
Unpacking samba-vfs-modules (2:4.7.6+dfsg~ubuntu-0ubuntu2) ...
Setting up python-dnspython (1.15.0-1) ...
Processing triggers for ufw (0.35-5) ...
Setting up samba-vfs-modules (2:4.7.6+dfsg~ubuntu-0ubuntu2) ...
Processing triggers for ureadahead (0.100.0-20) ...
Setting up libnl-route-3-200:amd64 (3.2.29-0ubuntu3) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for systemd (237-3ubuntu10) ...
Setting up tdb-tools (1.3.15-2) ...
update-alternatives: using /usr/bin/tdbbackup.tdbtools to provide /usr/bin/tdbbackup (tdbbackup) in auto mode
Processing triggers for man-db (2.8.3-2) ...
Setting up samba (2:4.7.6+dfsg~ubuntu-0ubuntu2) ...
Samba is not being run as an AD Domain Controller, masking samba-ad-dc.service.
Please ignore the following error about deb-systemd-helper not finding samba-ad-dc.service.
Created symlink /etc/systemd/system/multi-user.target.wants/nmbd.service → /lib/systemd/system/nmbd.service.
Failed to preset unit: Unit file /etc/systemd/system/samba-ad-dc.service is masked.
/usr/bin/deb-systemd-helper: error: systemctl preset failed on samba-ad-dc.service: No such file or directory
Created symlink /etc/systemd/system/multi-user.target.wants/smbd.service → /lib/systemd/system/smbd.service.
Setting up samba-dsdb-modules (2:4.7.6+dfsg~ubuntu-0ubuntu2) ...
Setting up attr (1:2.4.47-2build1) ...
Setting up libibverbs1:amd64 (17.1-1) ...
Setting up librados2 (12.2.4-0ubuntu1) ...
Setting up libcephfs2 (12.2.4-0ubuntu1) ...
Setting up ibverbs-providers:amd64 (17.1-1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for ureadahead (0.100.0-20) ...
Processing triggers for systemd (237-3ubuntu10) ...
Processing triggers for ufw (0.35-5) ...
xubuntu@xubuntu:~$ EXIT
...Ubuntu Rocks....
Hors ligne
#3 Le 27/07/2018, à 12:58
- heronheronpetitpatapon
Re : Reseau Xubuntu windows 10 problème avec Samba [RESOLU]
EDIT n°2 :
J'ai regardé les deux différents installations et j'ai donc installé les paquets suggérés suivant :
Suggested packages:
bind9 bind9utils ctdb ldb-tools ntp | chrony smbldap-tools winbind
Résultat toujours rien! je vais installé les paquets mentionné dans l'installation live de SAMBA :
attr ibverbs-providers libcephfs2 libibverbs1 libnl-route-3-200 librados2
python-dnspython samba samba-dsdb-modules samba-vfs-modules tdb-tools
En fait ils sont tous installé mais je peux toujours pas acceder au reseau sur ma session en dur!
C'est vraiment bizzareque ça mache sur une session live sans aucun accro que cela ne marche pas en dur sur mon pc!
Dernière modification par heronheronpetitpatapon (Le 27/07/2018, à 12:59)
...Ubuntu Rocks....
Hors ligne
#4 Le 27/07/2018, à 13:09
- heronheronpetitpatapon
Re : Reseau Xubuntu windows 10 problème avec Samba [RESOLU]
EDIT n°3
Dans le thread https://forum.ubuntu-fr.org/viewtopic.php?id=1323251
Bonjour,
j'ai eu le même problème et l'ai résolu de la façon suivante :
sudo gedit /etc/samba/smb.conf
dans la section suivante :
# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable its WINS Serverdécommenter et modifier la ligne
# wins support = no
devient
wins support = yesaprès un redémarrage, les partages réseau sont accessibles.
J'ai suivi cette procédure, et rien ne change! je vais redémarrer!
Dernière modification par heronheronpetitpatapon (Le 27/07/2018, à 13:09)
...Ubuntu Rocks....
Hors ligne
#5 Le 27/07/2018, à 13:13
- heronheronpetitpatapon
Re : Reseau Xubuntu windows 10 problème avec Samba [RESOLU]
Problème tout bête j'ai trouvé la solution en désactivant tout simplement le pare-feu!
sudo ufw status
sudo ufw disable
Je redémarre... tout marche!
PS : Y-a-il moyen de mettre une exception dans gufw pour que le pare feu soit actif mais qu'il laisse entrer le trafic du réseau domestique?
Merci
Dernière modification par heronheronpetitpatapon (Le 27/07/2018, à 17:56)
...Ubuntu Rocks....
Hors ligne