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 12-04-2020 15:31:27

Kazuma
Membre
Distrib. : Debian 10.3 (Buster)
Noyau : Linux 4.19.0-8-amd64
(G)UI : -
Inscription : 11-04-2020

Détection automatique des serveurs Samba par Windows

Bonjour,

Depuis plusieurs mois, j'essaye de mettre en place un serveur genre OMV à partir d'un Debian (pour savoir comment ça marche en vrai et pour pouvoir l'évoluer aussi).
Après avoir suivi probablement la totalité des tutos sur internet (si ce n'est plus yikes), force est de constater que ça ne marche pas.

90% du temps les ordis ne peuvent communiquer entre eux (un Debian et un Windows) et quand j'arrive enfin à les faire discuter et échanger des fichiers, je suis obligé de passer manuellement par une détection des réseaux. La config automatique ne marche pas. En gros, je dois cliquer ouvrir un explorateur sur Windows, connecter un réseau, attribuer une lettre, un chemin d'accès etc. Si je le fais directement depuis la barre de navigation de l'explorateur, ça ne fonctionne pas.

Dans le doute, j'ai même installé un OMV, récupéré son smb.conf, collé sur mon Debian et ça ne marche donc qu'à moitié. J'en déduis qu'un autre service doit faire office de pont entre les deux systèmes.

Je pense que c'est la config de mon smb.conf qui doit manquer de quelque chose mais je ne vois pas quoi dans la mesure où sur les tutos à droite à gauche, les mecs mettent trois pauvres déclarations et c'est censé marcher du feu de dieu.

Est-ce que quelqu'un aurait une idée ne serait-ce que de la procédure à suivre dans l'ordre ? ou une idée de l'endroit où ça pourrait coincer ?

Merci

PS : Je n'ai joint aucun fichier, je ne pense pas que ça aide dans l'immédiat vu que rien ne marche vraiment. Si toutefois ça aiderait, je les fournirai volontiers.

Hors ligne

#2 13-04-2020 19:02:13

Kazuma
Membre
Distrib. : Debian 10.3 (Buster)
Noyau : Linux 4.19.0-8-amd64
(G)UI : -
Inscription : 11-04-2020

Re : Détection automatique des serveurs Samba par Windows

Re,

Je poste donc des documents sur l'architecture de la machine qui marche avec OMV. Dès que je l'aurais réinstallée, je ferais pareil avec celle sous Debian.

ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether d4:3d:7e:f2:99:16 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.26/24 brd 192.168.0.255 scope global enp2s0
       valid_lft forever preferred_lft forever
3: wlp3s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether e8:94:f6:fb:36:2d brd ff:ff:ff:ff:ff:ff
 



ip route
default via 192.168.0.254 dev enp2s0
192.168.0.0/24 dev enp2s0 proto kernel scope link src 192.168.0.26
 



lsof -i
COMMAND     PID     USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
rpcbind     564     root    6u  IPv4  17664      0t0  UDP *:sunrpc
rpcbind     564     root    7u  IPv4  17666      0t0  UDP *:740
rpcbind     564     root    8u  IPv4  17667      0t0  TCP *:sunrpc (LISTEN)
rpcbind     564     root    9u  IPv6  17668      0t0  UDP *:sunrpc
rpcbind     564     root   10u  IPv6  17669      0t0  UDP *:740
rpcbind     564     root   11u  IPv6  17670      0t0  TCP *:sunrpc (LISTEN)
nginx       763     root    8u  IPv6  19384      0t0  TCP *:http (LISTEN)
nginx       764 www-data    8u  IPv6  19384      0t0  TCP *:http (LISTEN)
nginx       765 www-data    8u  IPv6  19384      0t0  TCP *:http (LISTEN)
nginx       766 www-data    8u  IPv6  19384      0t0  TCP *:http (LISTEN)
nginx       766 www-data   17u  IPv6  72866      0t0  TCP 192.168.0.26:http->192.168.0.17:62478 (ESTABLISHED)
nginx       767 www-data    8u  IPv6  19384      0t0  TCP *:http (LISTEN)
sshd        787     root    3u  IPv4  22920      0t0  TCP *:ssh (LISTEN)
sshd        787     root    4u  IPv6  22922      0t0  TCP *:ssh (LISTEN)
dhclient    895     root    6u  IPv4  19804      0t0  UDP *:bootpc
smbd      21221     root   31u  IPv6  66024      0t0  TCP *:microsoft-ds (LISTEN)
smbd      21221     root   32u  IPv6  66025      0t0  TCP *:netbios-ssn (LISTEN)
smbd      21221     root   33u  IPv4  66026      0t0  TCP *:microsoft-ds (LISTEN)
smbd      21221     root   34u  IPv4  66027      0t0  TCP *:netbios-ssn (LISTEN)
nmbd      21282     root   16u  IPv4  68024      0t0  UDP *:netbios-ns
nmbd      21282     root   17u  IPv4  68025      0t0  UDP *:netbios-dgm
nmbd      21282     root   18u  IPv4  68034      0t0  UDP 192.168.0.26:netbios-ns
nmbd      21282     root   19u  IPv4  68035      0t0  UDP 192.168.0.255:netbios-ns
nmbd      21282     root   20u  IPv4  68036      0t0  UDP 192.168.0.26:netbios-dgm
nmbd      21282     root   21u  IPv4  68037      0t0  UDP 192.168.0.255:netbios-dgm
python3   21302   nobody    4u  IPv4  68942      0t0  UDP 239.255.255.250:3702
python3   21302   nobody    5u  IPv4  68943      0t0  UDP *:50699
python3   21302   nobody    6u  IPv4  68946      0t0  TCP 192.168.0.26:5357 (LISTEN)
avahi-dae 21323    avahi   12u  IPv4  67083      0t0  UDP *:mdns
avahi-dae 21323    avahi   13u  IPv6  67084      0t0  UDP *:mdns
avahi-dae 21323    avahi   14u  IPv4  67085      0t0  UDP *:52865
avahi-dae 21323    avahi   15u  IPv6  67086      0t0  UDP *:39997
smbd      21912     root   36u  IPv4  69641      0t0  TCP 192.168.0.26:microsoft-ds->192.168.0.17:61918 (ESTABLISHED)
 



ps -aux
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0 139312  7160 ?        Ss   11:29   0:03 /sbin/init
root         2  0.0  0.0      0     0 ?        S    11:29   0:00 [kthreadd]
root         3  0.0  0.0      0     0 ?        I<   11:29   0:00 [rcu_gp]
root         4  0.0  0.0      0     0 ?        I<   11:29   0:00 [rcu_par_gp]
root         6  0.0  0.0      0     0 ?        I<   11:29   0:00 [kworker/0:0H-kb]
root         8  0.0  0.0      0     0 ?        I<   11:29   0:00 [mm_percpu_wq]
root         9  0.0  0.0      0     0 ?        S    11:29   0:00 [ksoftirqd/0]
root        10  0.0  0.0      0     0 ?        I    11:29   0:01 [rcu_sched]
root        11  0.0  0.0      0     0 ?        I    11:29   0:00 [rcu_bh]
root        12  0.0  0.0      0     0 ?        S    11:29   0:00 [migration/0]
root        14  0.0  0.0      0     0 ?        S    11:29   0:00 [cpuhp/0]
root        15  0.0  0.0      0     0 ?        S    11:29   0:00 [cpuhp/1]
root        16  0.0  0.0      0     0 ?        S    11:29   0:00 [migration/1]
root        17  0.0  0.0      0     0 ?        S    11:29   0:00 [ksoftirqd/1]
root        19  0.0  0.0      0     0 ?        I<   11:29   0:00 [kworker/1:0H-kb]
root        20  0.0  0.0      0     0 ?        S    11:29   0:00 [cpuhp/2]
root        21  0.0  0.0      0     0 ?        S    11:29   0:00 [migration/2]
root        22  0.0  0.0      0     0 ?        S    11:29   0:00 [ksoftirqd/2]
root        24  0.0  0.0      0     0 ?        I<   11:29   0:00 [kworker/2:0H-kb]
root        25  0.0  0.0      0     0 ?        S    11:29   0:00 [cpuhp/3]
root        26  0.0  0.0      0     0 ?        S    11:29   0:00 [migration/3]
root        27  0.0  0.0      0     0 ?        S    11:29   0:00 [ksoftirqd/3]
root        29  0.0  0.0      0     0 ?        I<   11:29   0:00 [kworker/3:0H-kb]
root        30  0.0  0.0      0     0 ?        S    11:29   0:00 [kdevtmpfs]
root        31  0.0  0.0      0     0 ?        I<   11:29   0:00 [netns]
root        32  0.0  0.0      0     0 ?        S    11:29   0:00 [kauditd]
root        33  0.0  0.0      0     0 ?        S    11:29   0:00 [khungtaskd]
root        34  0.0  0.0      0     0 ?        S    11:29   0:00 [oom_reaper]
root        35  0.0  0.0      0     0 ?        I<   11:29   0:00 [writeback]
root        36  0.0  0.0      0     0 ?        S    11:29   0:00 [kcompactd0]
root        37  0.0  0.0      0     0 ?        SN   11:29   0:00 [ksmd]
root        38  0.0  0.0      0     0 ?        SN   11:29   0:00 [khugepaged]
root        39  0.0  0.0      0     0 ?        I<   11:29   0:00 [crypto]
root        40  0.0  0.0      0     0 ?        I<   11:29   0:00 [kintegrityd]
root        41  0.0  0.0      0     0 ?        I<   11:29   0:00 [kblockd]
root        42  0.0  0.0      0     0 ?        I<   11:29   0:00 [edac-poller]
root        43  0.0  0.0      0     0 ?        I<   11:29   0:00 [devfreq_wq]
root        44  0.0  0.0      0     0 ?        S    11:29   0:00 [watchdogd]
root        45  0.0  0.0      0     0 ?        S    11:29   0:00 [kswapd0]
root        63  0.0  0.0      0     0 ?        I<   11:29   0:00 [kthrotld]
root        64  0.0  0.0      0     0 ?        I<   11:29   0:00 [ipv6_addrconf]
root        76  0.0  0.0      0     0 ?        I<   11:29   0:00 [kstrp]
root       116  0.0  0.0      0     0 ?        I<   11:29   0:00 [acpi_thermal_pm]
root       144  0.0  0.0      0     0 ?        I<   11:29   0:00 [ata_sff]
root       171  0.0  0.0      0     0 ?        S    11:29   0:00 [scsi_eh_0]
root       172  0.0  0.0      0     0 ?        I<   11:29   0:00 [scsi_tmf_0]
root       173  0.0  0.0      0     0 ?        S    11:29   0:00 [scsi_eh_1]
root       174  0.0  0.0      0     0 ?        I<   11:29   0:00 [scsi_tmf_1]
root       175  0.0  0.0      0     0 ?        S    11:29   0:00 [scsi_eh_2]
root       176  0.0  0.0      0     0 ?        I<   11:29   0:00 [scsi_tmf_2]
root       177  0.0  0.0      0     0 ?        S    11:29   0:00 [scsi_eh_3]
root       178  0.0  0.0      0     0 ?        I<   11:29   0:00 [scsi_tmf_3]
root       182  0.0  0.0      0     0 ?        I<   11:29   0:00 [kworker/1:1H-kb]
root       183  0.0  0.0      0     0 ?        I<   11:29   0:00 [kworker/3:1H-kb]
root       186  0.0  0.0      0     0 ?        I<   11:29   0:00 [kworker/0:1H-kb]
root       192  0.0  0.0      0     0 ?        I<   11:29   0:00 [md]
root       216  0.0  0.0      0     0 ?        I<   11:29   0:00 [raid5wq]
root       261  0.0  0.0      0     0 ?        I<   11:29   0:00 [kworker/u9:0]
root       277  0.0  0.0      0     0 ?        S    11:29   0:00 [jbd2/sda2-8]
root       278  0.0  0.0      0     0 ?        I<   11:29   0:00 [ext4-rsv-conver]
root       280  0.0  0.0      0     0 ?        I<   11:29   0:00 [kworker/2:1H-kb]
root       320  0.0  0.0  46096  5372 ?        Ss   11:29   0:00 /lib/systemd/systemd-journald
root       336  0.0  0.0  99004  1644 ?        Ss   11:29   0:00 /sbin/lvmetad -f
root       342  0.0  0.0  46172  4064 ?        Ss   11:29   0:00 /lib/systemd/systemd-udevd
root       351  0.0  0.0      0     0 ?        I<   11:29   0:00 [rpciod]
root       352  0.0  0.0      0     0 ?        I<   11:29   0:00 [xprtiod]
root       365  0.0  0.0  20828   176 ?        Ss   11:29   0:00 /usr/sbin/blkmapd
root       393  0.0  0.0      0     0 ?        I    11:29   0:00 [kworker/3:3-eve]
root       447  0.0  0.0      0     0 ?        S    11:29   0:00 [irq/27-mei_me]
root       464  0.0  0.0      0     0 ?        I<   11:29   0:00 [cfg80211]
root       491  0.0  0.0      0     0 ?        S    11:29   0:00 [i915/signal:0]
root       492  0.0  0.0      0     0 ?        S    11:29   0:00 [i915/signal:1]
root       495  0.0  0.0      0     0 ?        S    11:29   0:00 [i915/signal:2]
root       496  0.0  0.0      0     0 ?        S    11:29   0:00 [i915/signal:6]
root       564  0.0  0.0  49872  3536 ?        Ss   11:29   0:00 /sbin/rpcbind -f -w
root       583  0.0  0.0 254240  3156 ?        Ssl  11:29   0:00 /usr/sbin/rsyslogd -n
root       585  0.0  0.0  37984  2124 ?        Ss   11:29   0:01 /lib/systemd/systemd-logind
message+   588  0.0  0.0  45124  3712 ?        Ss   11:29   0:01 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
root       618  0.0  0.0  31388  2828 ?        Ss   11:29   0:00 /usr/sbin/cron -f
root       619  0.0  0.0   4208  1184 ?        Ss   11:29   0:00 /usr/sbin/acpid
root       701  0.0  0.3 256496 28960 ?        Ss   11:29   0:01 php-fpm: master process (/etc/php/7.0/fpm/php-fpm.conf)
root       710  0.0  0.0  65396  2940 tty1     Ss   11:29   0:00 /bin/login --
root       741  0.0  0.0 655332  4204 ?        Ssl  11:29   0:09 /usr/bin/rrdcached -B -F -f 3600 -w 900 -b /var/lib/rrdcached/db/ -j /var/lib/rrdcached/journal/ -p /var/run/rrdcached.pid -l unix:/var/run/rrdcached.sock
root       762  0.0  0.2 188292 17724 ?        S    11:29   0:05 omv-engined
root       763  0.0  0.0 159544  1668 ?        Ss   11:29   0:00 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
www-data   764  0.0  0.0 160184  4812 ?        S    11:29   0:00 nginx: worker process
www-data   765  0.0  0.0 159916  3180 ?        S    11:29   0:01 nginx: worker process
www-data   766  0.0  0.0 160180  4812 ?        S    11:29   0:01 nginx: worker process
www-data   767  0.0  0.0 159916  3180 ?        S    11:29   0:01 nginx: worker process
root       780  0.0  0.0 114680  2828 ?        Sl   11:29   0:05 /usr/bin/monit -c /etc/monit/monitrc
root       787  0.0  0.0  69960  5436 ?        Ss   11:29   0:00 /usr/sbin/sshd -D
www-data   794  0.0  0.0 256464  6664 ?        S    11:29   0:00 php-fpm: pool www
www-data   795  0.0  0.0 256464  6664 ?        S    11:29   0:00 php-fpm: pool www
root       834  0.0  0.0   4264  1328 ?        SLs  11:29   0:01 /usr/sbin/watchdog
root       846  0.0  0.0  22644  4692 tty1     S    11:29   0:00 -bash
root       895  0.0  0.0  20484  2764 ?        Ss   11:29   0:00 /sbin/dhclient -4 -v -pf /run/dhclient.enp2s0.pid -lf /var/lib/dhcp/dhclient.enp2s0.leases -I -df /var/lib/dhcp/dhclient6.enp2s0.leases enp2s0
root      3281  0.0  0.0      0     0 ?        I    13:00   0:00 [kworker/3:0]
root      5420  0.0  0.0      0     0 ?        I    15:39   0:00 [kworker/u8:1-ev]
root      5709  0.0  0.0      0     0 ?        I    16:01   0:00 [kworker/1:2-cgr]
root     19562  0.0  0.0      0     0 ?        I    17:00   0:00 [kworker/2:2-cgr]
root     19563  0.0  0.0      0     0 ?        I    17:00   0:00 [kworker/0:0-cgr]
root     20069  0.0  0.0      0     0 ?        I<   17:02   0:00 [btrfs-worker]
root     20070  0.0  0.0      0     0 ?        I<   17:02   0:00 [btrfs-worker-hi]
root     20071  0.0  0.0      0     0 ?        I<   17:02   0:00 [btrfs-delalloc]
root     20073  0.0  0.0      0     0 ?        I<   17:02   0:00 [btrfs-flush_del]
root     20074  0.0  0.0      0     0 ?        I<   17:02   0:00 [btrfs-cache]
root     20075  0.0  0.0      0     0 ?        I<   17:02   0:00 [btrfs-submit]
root     20076  0.0  0.0      0     0 ?        I<   17:02   0:00 [btrfs-fixup]
root     20077  0.0  0.0      0     0 ?        I<   17:02   0:00 [btrfs-endio]
root     20078  0.0  0.0      0     0 ?        I<   17:02   0:00 [btrfs-endio-met]
root     20079  0.0  0.0      0     0 ?        I<   17:02   0:00 [btrfs-endio-met]
root     20080  0.0  0.0      0     0 ?        I<   17:02   0:00 [btrfs-endio-rai]
root     20081  0.0  0.0      0     0 ?        I<   17:02   0:00 [btrfs-endio-rep]
root     20082  0.0  0.0      0     0 ?        I<   17:02   0:00 [btrfs-rmw]
root     20083  0.0  0.0      0     0 ?        I<   17:02   0:00 [btrfs-endio-wri]
root     20084  0.0  0.0      0     0 ?        I<   17:02   0:00 [btrfs-freespace]
root     20085  0.0  0.0      0     0 ?        I<   17:02   0:00 [btrfs-delayed-m]
root     20086  0.0  0.0      0     0 ?        I<   17:02   0:00 [btrfs-readahead]
root     20087  0.0  0.0      0     0 ?        I<   17:02   0:00 [btrfs-qgroup-re]
root     20088  0.0  0.0      0     0 ?        I<   17:02   0:00 [btrfs-extent-re]
root     20089  0.0  0.0      0     0 ?        S    17:02   0:00 [btrfs-cleaner]
root     20090  0.0  0.0      0     0 ?        S    17:02   0:00 [btrfs-transacti]
root     20217  0.0  0.0      0     0 ?        I    17:03   0:00 [kworker/u8:0-ev]
root     20454  0.0  0.1 971464 11552 ?        Ssl  17:03   0:01 /usr/sbin/collectd
root     21060  0.0  0.0      0     0 ?        I    17:07   0:00 [kworker/2:0-eve]
root     21221  0.0  0.1 320136 15544 ?        Ss   17:07   0:00 /usr/sbin/smbd
root     21222  0.0  0.0 311884  5836 ?        S    17:07   0:00 /usr/sbin/smbd
root     21223  0.0  0.0 311900  5624 ?        S    17:07   0:00 /usr/sbin/smbd
root     21282  0.0  0.0 227976  5932 ?        Ss   17:07   0:00 /usr/sbin/nmbd
nobody   21302  0.0  0.2  69196 20300 ?        Ss   17:07   0:00 python3 /usr/sbin/wsdd.py --shortlog --workgroup=WORKGROUP
avahi    21323  0.0  0.0  47144  3656 ?        Ss   17:07   0:00 avahi-daemon: running [openmediavault.local]
avahi    21324  0.0  0.0  47016   356 ?        S    17:07   0:00 avahi-daemon: chroot helper
root     21912  0.0  0.1 322288 14448 ?        S    17:08   0:00 /usr/sbin/smbd
root     21991  0.0  0.0      0     0 ?        I    17:09   0:00 [kworker/1:1-mm_]
root     21994  0.0  0.0      0     0 ?        I    17:09   0:00 [kworker/0:1-eve]
openmed+ 22435  0.3  0.1 256992 13640 ?        S    17:33   0:01 php-fpm: pool openmediavault-webgui
openmed+ 22918  0.4  0.1 256992 13640 ?        S    17:35   0:00 php-fpm: pool openmediavault-webgui
root     23215  0.0  0.0      0     0 ?        Zs   17:38   0:00 [mountpoint] <defunct>
root     23218  0.0  0.0  40028  3188 tty1     R+   17:38   0:00 ps -aux
 



et enfin le smb.conf, je le mets comme ça je vois pas comment faire autrement.


#======================= Global Settings =======================
[global]
workgroup = WORKGROUP
server string = %h server
dns proxy = no
log level = 0
log file = /var/log/samba/log.%m
max log size = 1000
logging = syslog
panic action = /usr/share/samba/panic-action %d
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = no
unix password sync = no
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
socket options = TCP_NODELAY IPTOS_LOWDELAY
guest account = nobody
load printers = no
disable spoolss = yes
printing = bsd
printcap name = /dev/null
unix extensions = yes
wide links = no
create mask = 0777
directory mask = 0777
map to guest = Bad User
use sendfile = yes
aio read size = 16384
aio write size = 16384
local master = yes
time server = no
wins support = no
#======================= Share Definitions =======================
[share]
path = /srv/dev-disk-by-label-DD-250/share
guest ok = yes
read only = no
browseable = yes
inherit acls = yes
inherit permissions = no
ea support = no
store dos attributes = no
vfs objects =
printable = no
create mask = 0664
force create mode = 0664
directory mask = 0775
force directory mode = 0775
hide special files = yes
follow symlinks = yes
hide dot files = yes
read list =
write list =
 




Voilà, je ne sais pas si ça parle à quelqu'un.

Par contre, si je ne vois aucune réponse, c'est que la question est trop triviale ou que ça n'a pas de sens ?

Hors ligne

Pied de page des forums