+ Responder ao Tópico



  1. #1

    Padrão Problema Permissão (Samba)

    Galera...
    Bom dia, tarde e noite!

    Estou com um "problema", a um tempo aqui na empresa.
    Tenho um servidor Debian, para compartilhamento arquivos, esse servidor está funcionando uma beleza, porém meu arquivos o usuáriuo vai acessar está aparecendo como somente leitura.
    Porém eu ja'coloquei permissão, coloquei permissão no config do samba...

    A arquivo sobre normal se eu colocar um número na antes do nomes!
    Exemplo:

    UnderLinux.ods (Essa arquivo vai abrir como leitura).
    0UnderLinux.ods (Essa arquivo vai abrir normal).

    Que posso fazer para funcionar normal?

    Obrigado

    Abraços

  2. #2

    Padrão Ajuda...

    Cara... posta seu Conf aii assim eu posso te ajudar melhor...

  3. #3

    Padrão

    Essa aqui é meu smb.conf:
    [global]
    net bios name = Srvoba12
    server string = SrvFiles

    os level = 100
    keep alive = 20

    local master = yes
    preferred master = yes

    dead time = 15

    wins support = yes
    guest account = nobody

    workgroup = jacsys
    security = SHARE

    encrypt passwords = true
    passdb backend = tdbsam
    invalid users = root

    null passwords = yes

    passwd program = /usr/bin/passwd %u
    passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .

    template shell = /bin/false
    max log size = 1000
    syslog = 0
    log file = /var/log/samba/%m.log

    panic action = /usr/share/samba/panic-action %d

    time server = Yes
    unix extensions = Yes
    socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY
    unix charset = iso8859-1
    display charset = cp850

    read raw = yes
    write raw = yes
    max xmit = 65535
    getwd cache = yes

    keep alive = yes
    #announce as = NT Worstation
    browseable = yes

    ### Lixeira ###
    ;recyclebin options
    recycle:exclude = *.tmp *.temp *.o *.obj ~$*
    recycle:keeptree = True
    recycle:touch = True
    recycle:versions = True
    recycle:noversions = .doc|.xls|.ppt
    recycle:repository = .recycle
    recycle:maxsize = 10000000
    create mask = 0777
    directory mask = 0777
    vfs objects = recycle


    [nfp]
    comment = Nota Fiscal Paulista
    path = /home/nfp
    writeable = yes
    guest ok = yes
    read only = no

    create mask = 0777
    directory mask = 0777
    create mask = 0777

    null passwords = no
    veto files = /*.eml/*.nws/riched20.dll/*.{*}/
    hide files = /*.$$$*/*JAC*/*jac*/*Filizola*/*TABELAS*/*CPDCONFIG*/*WALLPAPER*/*sweda*/*SWEDA*/*cpd*/*bkp_swd*/
    hosts allow = 192.168.0.6 192.168.0.16 192.168.0.18 192.168.0.21 192.168.12.201 192.168.12.202 192.168.12.211 192.168.12.212 192.168.12.213 192.168.12.253 192.168.12.15 192.168.12.215 192.168.12.216 192.168.12.217 192.168.12.218 192.168.12.219


    [c5]
    comment = C5
    path = /home/c5
    writeable = yes
    guest ok = yes
    read only = no

    create mask = 0777
    directory mask = 0777
    create mask = 0777

    veto files = /*.eml/*.nws/riched20.dll/*.{*}/
    hide files = /*JAC*/*jac*/*Filizola*/*TABELAS*/*CPDCONFIG*/*WALLPAPER*/*sweda*/*SWEDA*/
    hosts allow = 192.168.0.6 192.168.0.16 192.168.0.18 192.168.0.21 192.168.12.201 192.168.12.202 192.168.12.211 192.168.12.212 192.168.12.213 192.168.12.253 192.168.12.15 192.168.12.215 192.168.12.216 192.168.12.217 192.168.12.218 192.168.12.219

    [jacsys]
    comment = Srv Jacsys
    path = /home/linux
    writeable = yes
    guest ok = yes
    read only = no

    create mask = 0777
    directory mask = 0777
    create mask = 0777

    veto files = /*.eml/*.nws/riched20.dll/*.{*}/
    hide files = /*JAC*/*jac*/*Filizola*/*TABELAS*/*CPDCONFIG*/*WALLPAPER*/*sweda*/*SWEDA*/*Arq\Diversos*/
    hosts allow = 192.168.0.6 192.168.0.16 192.168.0.18 192.168.0.21 192.168.12.2 192.168.12.200 192.168.12.201 192.168.12.202 192.168.12.253

    [cpd$]
    comment = Arquivos CPD
    path = /home/cpd
    writeable = yes
    guest ok = yes
    read only = no

    create mask = 0777
    directory mask = 0777
    create mask = 0777

    veto files = /*.eml/*.nws/riched20.dll/*.{*}/
    hide files = /*JAC*/*jac*/*Filizola*/*TABELAS*/*CPDCONFIG*/*WALLPAPER*/*sweda*/*SWEDA*/
    valid users = suporte

    [jadir]
    comment = Arquivos Jadir
    path = /home/jadir
    writeable = yes
    guest ok = yes
    read only = no

    create mask = 0777
    directory mask = 0777
    create mask = 0777

    veto files = /*.a*/*.b*/*.c*/*.f*/*.g*/*.h*/*.i*/*.j*/*.k*/*.m*/*.n*/*.s*/*.u*/*.v*/*.y*/*.ogg/*.{*}/
    hide files = /*JAC*/*jac*/*Filizola*/*TABELAS*/*CPDCONFIG*/*WALLPAPER*/*sweda*/*SWEDA*/
    hosts allow = 192.168.0.21 192.168.0.18 192.168.0.16 192.168.12.2

  4. #4

    Padrão

    Amigo, criei um manual de instalacao de servidor de dados....

    tenta se basear neste tutorial para ver se resolve seu problema...
    MANUAL DE INSTALACAO SERVIDOR DE ARQUIVOS (PARA APRENDIZ E AVANÇADO )

  5. #5

    Padrão

    execute este comando no diretório que está o arquivo e poste o resultado
    Código :
    ls -Fla

  6. #6

    Padrão

    Executei o comando....
    Ai está o retorno.

    srvoba12:/home/cpd# ls -Fla
    total 60
    drwxrwxrwx 15 nobody nogroup 4096 Out 28 11:43 ./
    drwxr-xr-x 17 root root 4096 Out 28 14:02 ../
    drwxrwxrwx 2 nobody nogroup 4096 Out 27 08:50 Anti-Virus/
    drwxrwxrwx 2 nobody nogroup 4096 Out 27 08:50 BrOffice/
    drwxrwxrwx 2 nobody nogroup 4096 Out 27 08:50 Compactador/
    drwxrwxrwx 2 nobody nogroup 4096 Out 27 08:50 Driver Impressora/
    drwxrwxrwx 2 nobody nogroup 4096 Out 27 08:50 HelpDesk/
    drwxrwxrwx 2 nobody nogroup 4096 Out 26 14:14 Install Consinco/
    drwxrwxrwx 2 nobody nogroup 4096 Out 27 08:50 Mensageiro (Psi)/
    drwxrwxrwx 2 nobody nogroup 4096 Out 27 08:50 Navegador/
    drwxrwxrwx 4 nobody nogroup 4096 Out 27 08:50 PDF/
    drwxrwxrwx 2 suporte suporte 4096 Out 28 11:43 SP3/
    drwxrwxrwx 2 nobody nogroup 4096 Out 27 08:50 Sweprata/
    drwxrwxrwx 2 nobody nogroup 4096 Out 27 08:51 Thunderbird/
    drwxrwxrwx 2 nobody nogroup 4096 Out 27 08:51 VirtualDriver/

  7. #7

    Padrão

    cara.

    em seus compartilhamentos você tem uma linha repetida 'create mask', remova-a e acrescente as seguintes linhas
    Código :
    force create mode = 777
    force directory mode = 777

    veja se funciona