Por que meu compartilhamento samba4 [homes] não é navegável?

4

Por algum motivo, não consigo ver o compartilhamento do diretório inicial que é mapeado para o diretório inicial de cada usuário, [homes]. Eu posso mapear diretamente a unidade de rede para ela no Windows ou montá-la em um Mac, mas ao tentar procurar todos os compartilhamentos disponíveis ela não aparece. Tentei definir o compartilhamento [homes] como browseable = no e browseable = yes sem sucesso algum. Aqui está o meu 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
    
por Gabriel Syme 12.11.2012 / 19:55

3 respostas

1

Se você estiver tentando procurá-los a partir do servidor samba, o problema é a ligação lo interface .

O uso de interfaces = lo,eth0 só ligará 127.0.0.1 e eth0 IP . Por alguma razão, o acesso de loopback é feito via 27.0.1.1 .

Adicione 127.0.1.1/8 às interfaces ou remova bind interfaces only = yes

interfaces = 127.0.1.1/8 lo,eth0
bind interfaces only = yes
    
por user108847 18.11.2012 / 01:06
0

Tente usar [home] em vez de [homes] como nome da seção e somente essas opções:

comment = Home Directories
path = /home/%S
read only = no
    
por uff 06.02.2013 / 16:11
0

Eu não sei samba4, mas para o samba3 isso é explicado nas seções especiais da página man.

   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.

Talvez você possa definir o sinalizador navegável como sim na seção global.

    
por Mitja Tavcar 02.06.2013 / 15:31