web-dev-qa-db-fra.com

Pourquoi mon partage samba4 [homes] n'est-il pas navigable?

Pour une raison quelconque, je ne vois pas le partage du répertoire personnel mappé sur le répertoire personnel de chaque utilisateur, [maisons]. Je peux mapper directement le lecteur réseau sur celui-ci dans Windows ou le monter sur un Mac, mais lorsque vous essayez de parcourir tous les partages disponibles, il ne s'affiche pas. J'ai essayé de définir le partage [homes] sur browseable = no et browseable = yes sans succès. Voici mon smb.conf:

[global]
    # Custom edits via hook
    #######################

    # enable symlinks outside of shares
    unix extensions = no
    wide links = yes

    browseable = Yes
    # End custom edits
    ###################
    netbios name = enterprise
    workgroup = LIFE
    server string = Zentyal File Server

    wins support = yes
    dns proxy = yes
    name resolve order = wins bcast Host

    interfaces = lo,eth0
    bind interfaces only = yes

    server role = dc
    server role check:inhibit = yes
    realm = LIFE.LAN

    log level = 3
    log file = /var/log/samba/samba.log

    passdb backend = samba4
    idmap_ldb:use rfc2307 = yes
    server services = -dns -nbt -wrepl
    server signing = auto



[netlogon]
    path = /var/lib/samba/sysvol/life.lan/scripts
    browseable = no
    read only = yes

[sysvol]
    path = /var/lib/samba/sysvol
    read only = no

[homes]
    comment = Home Directories
    path = /home/%S
    read only = no
    browseable = no
    create mask = 0611
    directory mask = 0711
    vfs objects = acl_xattr full_audit
    full_audit:success = connect opendir disconnect unlink mkdir rmdir open rename
    full_audit:failure = connect opendir disconnect unlink mkdir rmdir open rename

# Shares
[directories]
    comment = Home directories
    path = /home
    browseable = Yes
    read only = No
    force create mode = 0660
    force directory mode = 0660
    vfs objects = acl_xattr full_audit
    full_audit:success = connect opendir disconnect unlink mkdir rmdir open rename
    full_audit:failure = connect opendir disconnect unlink mkdir rmdir open rename
# Shares
[default]
    comment = A share for anything
    path = /home/samba//shares/default
    browseable = Yes
    read only = No
    force create mode = 0660
    force directory mode = 0660
    vfs objects = acl_xattr full_audit
    full_audit:success = connect opendir disconnect unlink mkdir rmdir open rename
    full_audit:failure = connect opendir disconnect unlink mkdir rmdir open rename
# Shares
[scan]
    comment = Printer scans
    path = /home/samba//shares/default/Scanned
    browseable = Yes
    read only = No
    force create mode = 0660
    force directory mode = 0660
    vfs objects = acl_xattr full_audit
    full_audit:success = connect opendir disconnect unlink mkdir rmdir open rename
    full_audit:failure = connect opendir disconnect unlink mkdir rmdir open rename


[print$]
    comment = "Printer Drivers"
    path = /var/lib/samba/printers
    browseable = yes
    read only = yes
    guest ok = no
    write list = @"Domain Admins"
    valid users = @"Domain Users"

#[zentyal-internal-backups]
# path = /tmp
# browseable = yes
# read only = yes
# valid users = @"Domain Admins"
# admin users = @"Domain Admins"
# force group = ebox
# force user = ebox

[zentyal-quarantine]
    comment = "Quarantine"
    path = /home/samba/quarantine
    browseable = Yes
    read only = No

# Custom Share
# Generated by hook
[intranet]
    comment = intranet
    path = /var/www/ministries
    browseable = Yes
    read only = No
    force create mode = 0660
    force directory mode = 0660
    vfs objects = acl_xattr full_audit
    full_audit:success = connect opendir disconnect unlink mkdir rmdir open rename
    full_audit:failure = connect opendir disconnect unlink mkdir rmdir open rename

[ministries]
    comment = ministries
    path = /var/local/ministries
    browseable = Yes
    read only = No
    force create mode = 0660
    force directory mode = 0660
    vfs objects = acl_xattr full_audit
    full_audit:success = connect opendir disconnect unlink mkdir rmdir open rename
    full_audit:failure = connect opendir disconnect unlink mkdir rmdir open rename
4
Gabriel Syme

Si vous essayez de les parcourir depuis le serveur Samba, le problème est la liaison lo interface.

L'utilisation de interfaces = lo,eth0 ne liera que 127.0.0.1 et eth0 IP. Pour une raison quelconque, l'accès en boucle est effectué via 27.0.1.1.

Ajoutez 127.0.1.1/8 aux interfaces ou supprimez bind interfaces only = yes.

interfaces = 127.0.1.1/8 lo,eth0
bind interfaces only = yes
1
user108847

Je ne connais pas samba4, mais pour samba3, cela est expliqué dans la section SECTIONS SPECIALES de la page de manuel.

   The [homes] section
       If a section called [homes] is included in the configuration file, services connecting clients to their home directories can be
       created on the fly by the server.
...
       The browseable flag for auto home directories will be inherited from the global browseable flag, not the [homes] browseable flag.
       This is useful as it means setting browseable = no in the [homes] section will hide the [homes] share but make any auto home
       directories visible.

Peut-être que vous pouvez définir un indicateur de navigation sur oui dans la section globale.

0
Mitja Tavcar

Essayez d’utiliser [home] au lieu de [homes] comme nom de section et niquement ces options:

comment = Home Directories
path = /home/%S
read only = no
0
uff