+ Responder ao Tópico



  1. #1
    VISITANTE
    Visitante

    Padrão SAMBA-SOCORRO

    BOM GALERA POR FAVOR DEEM UMA OLHADA NO MEU SMB.CONF
    O MEU PROBLEMA É QUE MAQUINAS XP, NÃO LOGAM SO 98, SE ALGUEM PUDER ME AJUDAR AGRADEÇO. POIS MEU TRAMPO DEPENDE DISTO.
    [global]
    shared mem size = 20480
    workgroup = linux.com.br
    netbios name = pegasus
    server string = SMB Server
    announce as = NT Server
    printcap name = cups
    load printers = yes
    printing = cups
    log file = /var/log/samba/%m.log
    max log size = 50
    debug level = 1
    hosts allow = 192.168.0.1 192.168.0.255/255.255.255.0 10.160.0.0/255.255.252.0
    Keepalive = 20
    guest account = guest
    security = user
    map to guest = Bad User
    password server = yes
    password server = <NT-Server-Name>
    password level = 8
    username level = 8
    encrypt passwords = yes
    smb passwd file = /etc/samba/smbpasswd
    username map = /etc/samba/smbusers
    unix password sync = Yes
    passwd program = /usr/bin/smbpasswd %u
    passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*succefu
    lly*
    socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
    add machine script = /usr/sbin/adduser -n -r -g machines -c "Samba machine" -d /dev/null -s /bin/false %u
    # see the smb.conf(5) manpage for other important backends, such as tdbsam and ldap
    passdb backend = smbpasswd
    max xmit = 16384
    remote announce =10.160.3.255; 192.168.0.255/linux.com.br
    logon script = %U.bat
    logon drive = W:
    os level = 33
    domain logons = yes
    preferred master = yes
    domain master = yes
    local master = yes
    name resolve order = wins lmhosts bcast
    wins support = yes
    wins proxy = yes
    dns proxy = no
    short preserve case = yes
    preserve case = yes
    #============================ Share Definitions ==============================
    idmap uid = 16777216-33554431
    idmap gid = 16777216-33554431
    template shell = /bin/false
    winbind use default domain = no
    [homes]
    comment = Home Directories
    browseable = no
    writable = yes
    path = /home/%u
    # Un-comment the following and create the netlogon directory for Domain Logons
    [netlogon]
    comment = Network Logon Service
    path = /home/netlogon
    guest ok = yes
    writable = no
    share modes = no


    # Un-comment the following to provide a specific roving profile share
    # the default is to use the user's home directory
    ;[Profiles]
    ; path = /home/profiles
    ; browseable = no
    ; guest ok = yes

    # automatic printer driver download support
    [print$]
    path = /var/lib/samba/drivers
    guest ok = yes
    browseable = yes
    read only = yes
    ; since this share is configured as read only, then we need
    ; a 'write list'. Check the file system permissions to make
    ; sure this account can copy files to the share. If this
    ; is setup to a non-root account, then it should also exist
    ; as a 'printer admin'
    write list = root
    [printers]
    comment = All Printers
    path = /var/spool/samba
    browseable = no
    # Set public = yes to allow user 'guest account' to print
    guest ok = no
    writable = no
    printable = yes
    printer admin = root
    [samba]
    comment = login tracking share
    path = /home/samba/samba
    root preexec = /usr/local/bin/netlogon.sh %u
    root postexec = /usr/local/bin/netlogoff.sh %u

    [sistema]
    comment = Sistema Interno
    path = /programa
    browseable = no
    writable = yes
    [vendas]
    comment = Programas em Vendas
    path = /mnt/rede
    browseable = no
    writable = yes
    [cdrom]
    comment = Driver de cd rom
    path = /mnt/cdrom
    browseable =no
    writable = no
    [vendascd]
    comment = Driver de cd rom em vendas
    path =/mnt/cdrom2
    browseable =no
    writable = yes

  2. #2
    karfax
    Visitante

    Padrão SAMBA-SOCORRO

    L.O.G.S.

    Sds,

    ps: rode o script add machie script (no teu smb.conf) na mão - Não vá pôr "Samba machie"; ponha o nome de verdade da máquina que vc quer adicionar.
    :wink: