#1 Le 29/08/2016, à 12:12
- MichelD09
partage réseau local : impossible d'accéder à l'emplacement (RESOLU)
Bonjour,
sur un poste sous ubuntu 16.04 je ne vois pas le partage réseau (dans Nautilus - Réseau) : quand je clique sur partage windows j'ai le message :
"impossible d'accéder à l'emplacement, L'obtention de la liste des partages du serveur a échoué : Aucun fichier ou dossier de ce type"
Je précise que sur les autres postes du réseau (1 sur mac et 2 sous ubuntu) je vois les partages réseau sauf ceux du poste sur lequel j'ai le problème.
Sur ce poste j'ai vérifie le pare-feu (ufw) : il est désactivé.
La commande smbtree ne renvoie rien
La commande smbstatus --shares ne renvoie rien
La commande smbstatus affiche : no locked files
samba est activé
ci-dessous mon smb.conf : (je précise que j'ai essayé avec wims support = yes et avec wims support = no, sans succeès)
[global]
netbios name = Samba24
server string = Samba file and print server
workgroup = workgroup
security = user
hosts allow = 127. 192.168.0.
interfaces = 127.0.0.1/8 192.168.0.0/24
bind interfaces only = yes
remote announce = 192.168.0.255
remote browse sync = 192.168.0.255
printcap name = cups
; load printers = yes
cups options = raw
; printing = cups
; guest account = nobody
log file = /var/log/samba/samba.log
max log size = 1000
; null passwords = no
username level = 6
;; password level = 6
; encrypt passwords = yes
unix password sync = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
local master = no
domain master = no
; preferred master = no
; domain logons = no
os level = 33
logon drive = m:
logon home = \\%L\homes\%u
logon path = \\%L\profiles\%u
logon script = %G.bat
; time server = no
name resolve order = wins lmhosts bcast
; wins support = no
; wins proxy = no
;; wims support = yes
dns proxy = no
; preserve case = yes
; short preserve case = yes
client use spnego = no
client signing = no
client schannel = no
server signing = no
server schannel = no
; nt pipe support = yes
; nt status support = yes
allow trusted domains = no
obey pam restrictions = yes
enable spoolss = yes
; client plaintext auth = no
; disable netbios = no
follow symlinks = no
;; update encrypted = yes
; pam password change = no
passwd chat timeout = 120
; hostname lookups = no
username map = /etc/samba/smbusers
; passdb backend = tdbsam
passwd program = /usr/bin/passwd '%u'
passwd chat = *New*password* %n\n *ReType*new*password* %n\n *passwd*changed*\n
add user script = /usr/sbin/useradd -d /dev/null -c 'Samba User Account' -s /dev/null '%u'
add user to group script = /usr/sbin/useradd -d /dev/null -c 'Samba User Account' -s /dev/null -g '%g' '%u'
add group script = /usr/sbin/groupadd '%g'
delete user script = /usr/sbin/userdel '%u'
delete user from group script = /usr/sbin/userdel '%u' '%g'
delete group script = /usr/sbin/groupdel '%g'
add machine script = /usr/sbin/useradd -d /dev/null -g sambamachines -c 'Samba Machine Account' -s /dev/null -M '%u'
machine password timeout = 120
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
template shell = /dev/null
winbind use default domain = yes
winbind separator = @
winbind cache time = 360
winbind trusted domains only = yes
winbind nested groups = no
winbind nss info = no
; winbind refresh tickets = no
; winbind offline logon = no
; guest ok = no
[homes]
comment = Home Directories
path = /home
valid users = %U
read only = no
; available = yes
; browseable = yes
; guest ok = no
; printable = no
locking = no
strict locking = no
[netlogon]
comment = Network Logon Service
path = /var/lib/samba/netlogon
read only = no
; available = yes
; browseable = yes
; guest ok = no
; printable = no
locking = no
strict locking = no
[profiles]
comment = User Profiles
path = /var/lib/samba/profiles
read only = no
; available = yes
; browseable = yes
; guest ok = no
; printable = no
create mode = 0600
directory mask = 0700
locking = no
strict locking = no
[printers]
comment = All Printers
path = /var/spool/samba
; browseable = yes
; writable = No
; guest ok = no
printable = yes
locking = no
strict locking = no
[pdf-documents]
path = /var/lib/samba/pdf-documents
comment = Converted PDF Documents
admin users = %U
; available = yes
; browseable = yes
writeable = yes
guest ok = yes
locking = no
strict locking = no
[pdf-printer]
path = /tmp
comment = PDF Printer Service
printable = yes
guest ok = yes
use client driver = yes
printing = bsd
print command = /usr/bin/gadmin-samba-pdf %s %u
lpq command =
lprm command =
Merci pour votre aide
Dernière modification par MichelD09 (Le 30/08/2016, à 22:35)
Hors ligne
#2 Le 29/08/2016, à 14:09
- droopy191
Re : partage réseau local : impossible d'accéder à l'emplacement (RESOLU)
Salut,
Commencer par un
testparm smb.conf
Dernière modification par droopy191 (Le 29/08/2016, à 14:09)
Hors ligne
#3 Le 29/08/2016, à 14:31
- MichelD09
Re : partage réseau local : impossible d'accéder à l'emplacement (RESOLU)
testparm smb.conf me donne :
Load smb config files from smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Error loading services.
il n'y avait pas de ligne rlimit_max dans mon smb.conf
j'ai ajouté
rlimit_max = 16384
et relancé le service
ça ne change rien
Hors ligne
#4 Le 29/08/2016, à 14:34
- MichelD09
Re : partage réseau local : impossible d'accéder à l'emplacement (RESOLU)
Si cela peut aider : les dernières lignes de mon samba.log
[2016/08/29 09:23:30.762460, 0] ../lib/param/loadparm.c:1617(lpcfg_do_global_parameter)
Ignoring unknown parameter "wims support"
[2016/08/29 09:28:49.432017, 0] ../lib/util/become_daemon.c:124(daemon_ready)
STATUS=daemon 'smbd' finished starting up and ready to serve connections
[2016/08/29 11:22:17.365197, 0] ../lib/util/become_daemon.c:135(daemon_status)
STATUS=daemon 'nmbd' : No local IPv4 non-loopback interfaces available, waiting for interface ...NOTE: NetBIOS name resolution is not supported for Internet Protocol Version 6 (IPv6).
[2016/08/29 11:22:17.565022, 0] ../lib/util/become_daemon.c:124(daemon_ready)
STATUS=daemon 'smbd' finished starting up and ready to serve connections
Hors ligne
#5 Le 29/08/2016, à 15:26
- droopy191
Re : partage réseau local : impossible d'accéder à l'emplacement (RESOLU)
Je vois 2 choses
2016/08/29 09:23:30.762460, 0] ../lib/param/loadparm.c:1617(lpcfg_do_global_parameter)
Ignoring unknown parameter "wims support"
C'est wins support, pas wims
[2016/08/29 11:22:17.365197, 0] ../lib/util/become_daemon.c:135(daemon_status)
STATUS=daemon 'nmbd' : No local IPv4 non-loopback interfaces available, waiting for interface
Samba n'écoute sur aucune interface locale en dehors de loopback
Pour moi cette ligne est incorrecte.
interfaces = 127.0.0.1/8 192.168.0.0/24
Ce n'est pas le réseau qu'il faut indiquer mais l'ip du serveur
interfaces = 127.0.0.1/8 192.168.0.X
Copie du man Samba
This option allows you to override the default network interfaces list that Samba will use for browsing, name registration and other NetBIOS over TCP/IP (NBT) traffic. By default Samba will query the kernel for the list of all active interfaces and use any interfaces except 127.0.0.1 that are broadcast capable.
The option takes a list of interface strings. Each string can be in any of the following forms:
a network interface name (such as eth0). This may include shell-like wildcards so eth* will match any interface starting with the substring "eth"
an IP address. In this case the netmask is determined from the list of interfaces obtained from the kernel
an IP/mask pair.
a broadcast/mask pair.
The "mask" parameters can either be a bit length (such as 24 for a C class network) or a full netmask in dotted decimal form.
The "IP" parameters above can either be a full dotted decimal IP address or a hostname which will be looked up via the OS's normal hostname resolution mechanisms.
By default Samba enables all active interfaces that are broadcast capable except the loopback adaptor (IP address 127.0.0.1).
The example below configures three network interfaces corresponding to the eth0 device and IP addresses 192.168.2.10 and 192.168.3.10. The netmasks of the latter two interfaces would be set to 255.255.255.0.
Default: interfaces =
Example: interfaces = eth0 192.168.2.10/24 192.168.3.10/255.255.255.0
Pas sur que cela soit suffisant, la sortie de tesparm me parait étrange.
Un example je crois plus typique ( j'ai enlevé certains détails .... )
testparm /etc/samba/smb.conf
Load smb config files from /etc/samba/smb.conf
Processing section "[printers]"
Processing section "[print$]"
Processing section "[Videos]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
# Global parameters
[global]
server string = %h server
security = USER
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
.....
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
print ok = Yes
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
[Videos]
....
Dernière modification par droopy191 (Le 29/08/2016, à 15:32)
Hors ligne
#6 Le 29/08/2016, à 19:56
- MichelD09
Re : partage réseau local : impossible d'accéder à l'emplacement (RESOLU)
Merci pour votre aide tout d'abord
Ensuite, désolé mais javais utilisé testparm sans indiquer le fichier smb.conf en paramère !
Voici la sortie de testparm
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
WARNING: The "idmap uid" option is deprecated
WARNING: The "idmap gid" option is deprecated
Processing section "[homes]"
Processing section "[netlogon]"
Processing section "[profiles]"
Processing section "[printers]"
Processing section "[pdf-documents]"
Processing section "[pdf-printer]"
Loaded services file OK.
WARNING: socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
This warning is printed because you set one of the
following options: SO_SNDBUF, SO_RCVBUF, SO_SNDLOWAT,
SO_RCVLOWAT
Modern server operating systems are tuned for
high network performance in the majority of situations;
when you set 'socket options' you are overriding those
settings.
Linux in particular has an auto-tuning mechanism for
buffer sizes (SO_SNDBUF, SO_RCVBUF) that will be
disabled if you specify a socket buffer size. This can
potentially cripple your TCP/IP stack.
Getting the 'socket options' correct can make a big
difference to your performance, but getting them wrong
can degrade it by just as much. As with any other low
level setting, if you must make changes to it, make
small changes and test the effect before making any
large changes.
WARNING: You have some share names that are longer than 12 characters.
These may not be accessible to some older clients.
(Eg. Windows9x, WindowsMe, and smbclient prior to Samba 3.0.)
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
# Global parameters
[global]
netbios name = SAMBA24
server string = Samba file and print server
bind interfaces only = Yes
security = USER
client schannel = No
server schannel = No
allow trusted domains = No
obey pam restrictions = Yes
passwd program = /usr/bin/passwd '%u'
passwd chat = *New*password* %n\n *ReType*new*password* %n\n *passwd*changed*\n
passwd chat timeout = 120
username map = /etc/samba/smbusers
username level = 6
unix password sync = Yes
log file = /var/log/samba/samba.log
max log size = 1000
name resolve order = wins lmhosts bcast
client signing = No
server signing = No
client use spnego = No
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = cups
machine password timeout = 120
add user script = /usr/sbin/useradd -d /dev/null -c 'Samba User Account' -s /dev/null '%u'
delete user script = /usr/sbin/userdel '%u'
add group script = /usr/sbin/groupadd '%g'
delete group script = /usr/sbin/groupdel '%g'
add user to group script = /usr/sbin/useradd -d /dev/null -c 'Samba User Account' -s /dev/null -g '%g' '%u'
delete user from group script = /usr/sbin/userdel '%u' '%g'
add machine script = /usr/sbin/useradd -d /dev/null -g sambamachines -c 'Samba Machine Account' -s /dev/null -M '%u'
logon script = %G.bat
logon path = \\%L\profiles\%u
logon drive = m:
logon home = \\%L\homes\%u
os level = 33
local master = No
domain master = No
dns proxy = No
wins support = Yes
remote announce = 192.168.0.255
remote browse sync = 192.168.0.255
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
template shell = /dev/null
winbind separator = @
winbind cache time = 360
winbind use default domain = Yes
winbind trusted domains only = Yes
winbind nested groups = No
winbind nss info = no
idmap config * : range = 16777216-33554431
idmap config * : backend = tdb
hosts allow = 127. 192.168.0.
cups options = raw
follow symlinks = No
[homes]
comment = Home Directories
path = /home
valid users = %U
read only = No
locking = No
strict locking = No
[netlogon]
comment = Network Logon Service
path = /var/lib/samba/netlogon
read only = No
locking = No
strict locking = No
[profiles]
comment = User Profiles
path = /var/lib/samba/profiles
read only = No
create mask = 0600
directory mask = 0700
directory mode = 0700
locking = No
strict locking = No
[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No
locking = No
strict locking = No
[pdf-documents]
comment = Converted PDF Documents
path = /var/lib/samba/pdf-documents
admin users = %U
read only = No
guest ok = Yes
locking = No
strict locking = No
[pdf-printer]
comment = PDF Printer Service
path = /tmp
guest ok = Yes
printable = Yes
printing = bsd
print command = /usr/bin/gadmin-samba-pdf %s %u
lpq command =
use client driver = Yes
Enfin j'ai corrigé l'erreur pour wins sans changement
J'ai modifié les interfaces réseaux : pas de changement (j'ai aussi commenté la ligne puisque dans le smb.conf d'un autre de mes postes où cela fonctionne cette ligne n'existe pas, sans succès
Hors ligne
#7 Le 29/08/2016, à 21:36
- patked
Re : partage réseau local : impossible d'accéder à l'emplacement (RESOLU)
Hello
Combien de caractère comporte le nom du pc sur lequel , tu veux accéder en partage ?
Au delà de 8 char, les partages deviennent compliqués, j'ai eu ce pb.
A+
Hors ligne
#8 Le 29/08/2016, à 23:02
- MichelD09
Re : partage réseau local : impossible d'accéder à l'emplacement (RESOLU)
8 caractères
En plus ça marchait avant !
La seule chose que j'ai faite entre temps c'est une mise à jour 15.10 -> 16.04 d'ubuntu
Hors ligne
#9 Le 29/08/2016, à 23:17
- bonuscad
Re : partage réseau local : impossible d'accéder à l'emplacement (RESOLU)
Bonjour,
J'avais eu un problème moi aussi lors du passage à LTS16.04, pour mes partages avec Samba.
Bien que tu dis avoir désactiver le pare-feu, essayes quand même ce qui est dit ici , car pour moi ça a résolu mes problèmes de connexions. (ouverture des ports 135 137 138 139 et 445)
En plus c'est mieux de le faire, car si tu réactive le pare-feu, au moins ça ne bloquera pas!
Hors ligne
#10 Le 29/08/2016, à 23:54
- Coeur Noir
Re : partage réseau local : impossible d'accéder à l'emplacement (RESOLU)
Je « plussoie » l'idée de bonuscad : la mise à niveau de 15.10 → 16.04 a probablement remis les paramètres de pare-feu aux valeurs par défaut.
Débuter ⋅ Doc ⋅ Bien rédiger ⋅ Retour commande ⋅ Insérer image | illustrations & captures d'écran < ⋅ >
Hors ligne
#11 Le 29/08/2016, à 23:59
- MichelD09
Re : partage réseau local : impossible d'accéder à l'emplacement (RESOLU)
Bon j'essaye ça demain (il faut que je regarde la doc de ufw)
Je vous tiens au courant
Merci à tous et bonne nuit !
Hors ligne
#12 Le 30/08/2016, à 00:23
- Coeur Noir
Re : partage réseau local : impossible d'accéder à l'emplacement (RESOLU)
Configuration du pare-feu par défaut d'Ubuntu
Par défaut, le service de pare-feu UFW est installé et actif dans Ubuntu. à moins d'utiliser un autre logiciel de pare-feu ou d'avoir complètement désactivé UFW, vous devez mettre à jour également la section suivante dans le fichier /etc/default/ufw :# extra connection tracking modules to load # ajout de nf_conntrack_netbios_ns pour Samba IPT_MODULES="nf_conntrack_ftp nf_nat_ftp nf_conntrack_irc nf_nat_irc nf_conntrack_netbios_ns"
Dernière modification par Coeur Noir (Le 30/08/2016, à 00:26)
Débuter ⋅ Doc ⋅ Bien rédiger ⋅ Retour commande ⋅ Insérer image | illustrations & captures d'écran < ⋅ >
Hors ligne
#13 Le 30/08/2016, à 08:21
- droopy191
Re : partage réseau local : impossible d'accéder à l'emplacement (RESOLU)
Je ne vois rien d'évident dans les retours de testparm mais on peut deja corriger les erreurs.
Le fichier de conf est-il celui par défaut, avec vos ajouts ?
Je vous propose de commenter les points suivants:
les 2 options sont dépréciés
idmap uid
dmap gid
Plus nécessaire
socket options
Je ne crois pas que cela soit le pb mais cela vaut d'etre corrigé
modifier ou supprimer les noms de partages > 8 caractères
[pdf-documents]
[pdf-printer]
Je vous propose aussi de modifier les options suivantes si votre machine est destinée a etre principalement allumée. J'ai constaté que c'était souvent plus stable pour le voisinage réseau.
domain master = yes
local master = yes
os level = 99
Il faut aussi créer un partage.
Vérifiez à nouveau la sortie de testparm, redémarrez samba.
patientez qq minutes pour que le voisinage réseau se stabilise
et retentez smbtree et smbclient
Enfin question bete, avez vous installer cifs-utils ?
Dernière modification par droopy191 (Le 30/08/2016, à 08:31)
Hors ligne
#14 Le 30/08/2016, à 22:34
- MichelD09
Re : partage réseau local : impossible d'accéder à l'emplacement (RESOLU)
Bonsoir
J'ai activé et paramétré le pare feu selon vos conseils et ça fonctionne !
Un grand merci à tous pour votre aide.
Hors ligne