+ Responder ao Tópico



  1. #1

    Padrão Bug no setup do samba

    Pessoal apos remover o pacote com dpkg -r samba e apagar o diretorio no /etc, fui instalar denovo o samba porem da a seguinte mensagem, oque posso fazer para instalar ele denovo ? Grato.

    bells:/# apt-get install samba
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Suggested packages:
    smbldap-tools ldb-tools
    The following NEW packages will be installed:
    samba
    0 upgraded, 1 newly installed, 0 to remove and 465 not upgraded.
    Need to get 0B/4292kB of archives.
    After this operation, 11.7MB of additional disk space will be used.
    Preconfiguring packages ...
    Selecting previously deselected package samba.
    (Reading database ... 57210 files and directories currently installed.)
    Unpacking samba (from .../samba_2%3a3.2.3-3_i386.deb) ...
    Processing triggers for man-db ...
    Setting up samba (2:3.2.3-3) ...
    Starting Samba daemons: nmbd failed!
    invoke-rc.d: initscript samba, action "start" failed.
    dpkg: error processing samba (--configure):
    subprocess post-installation script returned error exit status 1
    Errors were encountered while processing:
    samba
    E: Sub-process /usr/bin/dpkg returned an error code (1)

  2. #2

    Padrão

    Baixar pacote do site especificado Samba -- Opening Windows to a Wider World
    • Descompacta-lo com o comando tar -xzvf samba-3.0.14a.tar.gz (verificar a versão atual)
    • Entrar no diretório samba-3.0.14a/source
    • Executar o comando ./configure --prefix=/usr --sysconfdir=/etc/samba --localstatedir=/var --with-configdir=/etc/samba --with-privatedir=/etc/samba --with-acl-support --with-profile --with-smbmount
    • Executar o comando make
    • Executar o comando make install
    • Entrar no diretório samba-3.0.14a/packaging/Fedora
    • Editar o arquivo samba.xinetd e mudar o parâmetro “disable” de “yes” para “no” e comentar a linha “only_from”
    • Copiar o arquivo samba.xinetd para /etc/xinetd.d com o nome de swat (cp samba.xinetd /etc/xinetd.d/swat) e depois reiniciar o serviço xinetd (/etc/rc.d/init.d/xinetd restart)
    • Copiar o arquivo smb.conf para o diretório /etc/samba (cp smb.conf /etc/samba)
    • Mudar a permissão do arquivo smb.init e copia-lo para o diretório /etc/rc.d/init.d com o nome de samba (ou smb) e digitar o comando chkconfig --add samba (ou smb)

    depois disso vc pode configurar o seu samba da sua forma !!!!