http://www.zago.eti.br/samba/modelos.txt Modelos de smb.conf. Use CTRL+F para refinar a pesquisa. Linha de: **************** separa mensagens ou tópicos. ******************************************************** Zago http://www.zago.eti.br/menu.html FAQ e artigos sobre Linux ************************************************* ************************************************* ************************************************* ************************************************* De: Alexandre Para: Mauricio Teixeira , NightWolf Cc: linux-br@bazar.conectiva.com.br Assunto: Re: (linux-br) SAMBA+Clipper+Permissoes Data: 27 Feb 2003 09:06:01 -0300 Amigos, Aqui na empresa eu trabalho com Clipper, segue abaixo a configuração que estou usando. A configuração na apresenta nenhum problema. Estou usando o Red Hat 8.0 com Samba version 2.2.7 Atenciosamente Alexandre [global] workgroup = athenas netbios name = master printing = bsd log file = /var/log/samba/log.%m #/usr/local/samba/log.%m socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 domain logons = yes logon script = %g.bat logon path = //%L/profiles/%g domain master = yes preferred master = yes os level = 65 wins support = yes keepalive = 20 log level = 1 map to guest = never time server = yes # case sensitive = yes preserve case=No [homes] comment = Home Directories browseable = no read only = no create mode = 0750 [netlogon] comment = Compartilhamento de Scripts path = /etc/samba public = no browseable = yes writable = no logon script = %g.bat logon path = //%L/profiles/%g domain logons = yes [printers] comment = All Printers browseable = no printable = yes public = no writable = no create mode = 0700 [g] comment = Servidor Athenas available = yes browseable = yes public = yes guest only = no writable = yes only user = no path = /u/sistema force create mode = 0777 force directory mode = 0777 write list = @users valid users = @users [s] comment = Servidor Athenas available = yes browseable = yes public = yes guest only = no writable = yes only user = no path = /u/software force create mode = 0777 force directory mode = 0777 write list = @users valid users = @users [o] comment = Servidor Athenas available = yes browseable = yes public = yes guest only = no writable = yes only user = no path = /u/program force create mode = 0777 force directory mode = 0777 write list = @users valid users = alexandre alan ----- Original Message ----- From: Mauricio Teixeira To: NightWolf Cc: linux-br@bazar.conectiva.com.br Sent: Wednesday, February 26, 2003 7:34 AM Subject: Re: (linux-br) SAMBA+Clipper+Permissoes Em Ter, 2003-02-25 às 08:34, NightWolf escreveu: > feito em clipper para uma pasta chamada Sistema, onde no smb.conf dei > permissao publica a todos os usuarios. Só consegui resolver esse problema com as seguintes diretivas: [sistema] (...) write list = @grupoX create mask = 0770 directory mask = 0770 force create mode = 0770 force directory mode = 0770 force group = grupoX oplocks = false O mais importante é o "oplocks", que é o grande "calo" do Clipper. Se alguém tem uma solução mais inteligente, estou aberto à discussões... ************************************************* Agradeço pela ajuda de todos que responderam ao e-mail. Está quase chegando lá. Recebi a dica do Paulo Henrique de como adicionar o segundo server. Basicamente precisa incluir no GLOBAL do primeiro server security = user e no segundo server security = DOMAIN password server = 192.168.0.1 #ip do server principal. Após isso, reiniciei as daemons smbd;nmbd # killall -TERM smbd;nmbd # smbd;nmbd start ok, o samba reiniciou. Feito isso, no segundo server dei o comando: # smbpasswd -j TWB -r TWBMARINER GRUPO SERVER Quando feito o comando, um erro foi reportado: modify_trust_password: Machine TWBMARINER is one of our addresses. Cannot add to ourselves. 2001/10/18 18:41:44 : change_trust_account_password: Failed to change password f or domain TWB. Unable to join domain TWB. Ok. Dando uma olhada no log NMBD, ele retornou a seguinte mensagem: [2001/10/18 18:47:37, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(405) ***** Samba name server TWBMARINER2 is now a local master browser for workgroup TWB on subnet 192.0.1.3 ***** Isso pq esse server possue 2 placas: eth0 - 192.168.0.2 eth1 - 192.0.1.3 Essa eth1 é uma saida para a internet. Nesse caso, o segundo server está tomando a eleição de mestre principal da outra rede (eth1). A pergunta é: como especificar para esse segundo samba, que ele somente irá trabalhar com a rede 192.168.0.0 ?? Abaixo o GLOBAL do primeiro server e o GLOBAL do segundo server Grato Pela atenção []'s **** SERVER PRINCIPAL **** [global] workgroup = TWB netbios name = TWBMARINER server string = Servidor de Arquivos security = user encrypt passwords = Yes name resolve order = hosts wins cast deadtime = 1 keepalive = 20 socket options = SO_kEEPALIVE SO_BROADCAST TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=4096 SO_RCVBUF=4096 logon script = login.bat domain logons = Yes os level = 65 preferred master = Yes domain master = Yes time offset = 15 admin users = @informatica log level = 1 read raw = yes write raw = yes max xmit = 65535 getwd cache = yes unix password sync = yes stat cache = yes read size = 16384 read prediction = no wins support = yes *** SEGUNDO SERVER **** [global] workgroup = TWB netbios name = TWBMARINER2 server string = Servidor Internet Security = server password server = 192.168.0.1 os level = 30 Atenciosamente Marcel de Oliveira Lima marceldelima@ig.com.br ICQ 9322320 Subject: 2 Servidores Samba - É possível. Ainda s/ resposta... > TEnho um sergundo server na empresa, onde este gostaria de utiliza-lo com > servidor de arquivos. Jah tenho um Server Samba, e neste segundo server, > gostaria que os usuários logassem no primeiro e tivessem os mesmos direitos > de acesso no segundo. Qual o caminho que devo proceder? ************************************************* De:  informatica@arce.ce.gov.br Para:  linux-br@bazar.conectiva.com.br Cc:  henriquelr@arce.ce.gov.br Assunto:  (linux-br) SAMBA - perda de compartilhamento Data:  Wed, 12 Feb 2003 09:10:12 -0300 Tenho 3 servidores linux com Samba: sl01 - PDC (Rh 7.1)     sl02 -  (CL 7.0)    e sl03 - (Rh 7.1) Tenho verificado na minha estacao Win, que de tempos em tempos há perda do compartilhamento de pastas principalmente no sl02 onde roda o squid, o que me faz perder tambem o acesso a Internet. Já verifiquei em listas algo semelhante mas nao consegui sucesso. Alguem poderia ajudar ? Agradeço desde já. Henrique Revoredo SMB.CONF do SL01 #======================= Global Settings ===================================== [global] workgroup = arce2 # server string is the equivalent of the NT Description field     netbios name  = sl01     server string = Servidor PDC Linux     printcap name = /etc/printcap     load printers = yes     printing = lprng     log file = /var/log/samba/log.%m     max log size = 50     debug level = 3     security = user     socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192     os level = 99     domain master = yes     domain logons = yes     logon script = %U.bat     wins support = yes     dns proxy = no     unix password sync = no     encrypt passwords = no     map to guest = never     password level = 0     null passwords = no     preferred master = yes     dead time = 1     keepalive = 20     allow hosts = 172.18.0. 127.     deny hosts = .. #============================ Share Definitions ============================== [homes]     comment = Diretorios dos Usuarios     browseable = no     writable = yes # 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     browseable = no [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 [backupsl01]     path = /var/backup     browseable = yes     writable = yes     public = yes     create mask = 0777 ********* SMB.CONF do SL02 #======================= Global Settings ===================================== [global] workgroup = arce2     server string = sl02     printcap name = /etc/printcap     load printers = yes     printing = lprng     log file = /var/log/samba/log.%m     max log size = 50     debug level = 3      security = user     socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192     dns proxy = no     unix password sync = no     encrypt passwords = no     map to guest = never     password level = 0     null passwords = no     os level = 70     preferred master = no     domain master = no     wins support = no     dead time = 0 #============================ Share Definitions ============================== [homes]     comment = Home Directories     browseable = no     writable = yes [printers]     comment = All Printers     path = /var/spool/samba     browseable = no     guest ok = no     writable = no     printable = yes [backupsl02]     valid users = henrique wagner robson     browseable = yes     path = /var/backup     public = no     writable = yes     create mask = 0777 ********* SMB.CONF do SL03 #======================= Global Settings ===================================== [global] workgroup = arce2     server string = sl03     printcap name = /etc/printcap     load printers = yes     printing = lprng     log file = /var/log/samba/log.%m     max log size = 50     debug level = 3     security = user     socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192     dns proxy = no     unix password sync = no     encrypt passwords = no     map to guest = never     password level = 0     null passwords = no     os level = 70     preferred master = no     domain master = no     wins support = no     dead time = 0 #============================ Share Definitions ============================== [homes]    comment = Home Directories    browseable = no    writable = yes [printers]    comment = All Printers    path = /var/spool/samba    browseable = no    guest ok = no    printable = yes [backup]     valid users : henrique, wagner, robson     browseable = yes     path = /var/backup     public = yes     writable = yes     printable = no     create mask = 0777 ************************************************* De:  Daniel Para:  caio ferreira Cc:  Linux-BR Assunto:  Re: (linux-br)SAMBA - Sincronizaçãocom estaçõesruindows Data:  11 Feb 2004 10:04:31 -0300      Fala Caio,    Segue anexo um tutorial que montei para configurar o samba. Mastiguei hein !!!!    []`s.   Daniel Em Qua, 2004-02-11 às 05:50, caio ferreira escreveu: > On 09 Feb 2004 08:42:16 -0300 > Daniel wrote: > > >    Tenho o SAMBA rodando legal na minha empresa, ele faz login script > > para as estações mapeando os hosts e sincronizando horario. > >    Gostaria de saber que tipo de configuração é possível fazer, enviar > > fundo de tela, ou algo mais. > >       Sera que você poderia enviar o arquivo smb.conf para eu dar uma olhada? > É que eu estou tentando fazer isso e até agora não consegui. anexo documento de texto simples (tutorial_samba.txt) 1-) Arquivo smb.conf #======================= Global Settings ===================================== [global] log file = /var/log/samba/log.%m smb passwd file = /etc/smbpasswd admin users = local master = yes domain master = yes domain logons = yes unix password sync = yes null passwords = no load printers = yes name resolve order = host wins bcast socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192 hosts equiv = /etc/hosts hostname lookups = yes username map = /etc/smbusers encrypt passwords = yes hosts allow = 192.168. (coloque a faixa de IP que poderá acessar seu servidor) logon drive = Z: logon path = \\%L\profiles (este item é muito importante para quem usar w2k) logon home = \\%L\profiles (este item é muito importante para quem usar w2k) password level = 0 wins support = true dns proxy = no netbios name = server string = Servidor de Arquivos (PDC) remote announce = 192.168.255.255 (coloque a faixa de IP da sua rede) workgroup = os level = 65 debug level = 1 printcap name = /etc/printcap security = user max log size = 100 domain logons = yes domain logons = yes #======================= Shares ============================================= [netlogon] writeable = yes path = /home/netlogon force create mode = 0777 create mask = 0777 comment = Network Logon Service public = yes [profiles] comment = %u path = /home/%u public = no writable = yes browseable = yes printable = no create mask = 0777 force create mode = 0770 [files] comment = Arquivos path = /home/files public = no writable = yes browseable = yes printable = no write list = @users valid users = @users create mask = 0770 force directory mode = 0770 force create mode = 0770 Use o testparm, para testar sua configuração (essa ferramenta é importante para descobrir possiveis falhas na sua configuração) #testparm /etc/samba/smb.conf 2-) CONFIGURANDO O SAMBA COMO SERVIDOR DE HORA    2.1- Edite o arquivo /etc/inetd.conf e descomente a linha:    time    stream  tcp     nowait  root    internal     2.2- Reinicie o inet com o comando:    /etc/rc.d/init.d/inet restart 3- Se vc estiver usando o samba como PDC para as máquinas Win, dá para sincronizar automaticamente no logon:   3.1- crie o diretorio /home/samba/netlogon, com permissão drwxr-xr-x   3.2- Na seção [global] do /etc/smb.conf, inclua as linhas:        time server = True        logon script = logon.bat   3.3- Inclua a seção [netlogon] no /etc/smb.conf conforme abaixo:        [netlogon]        comment = Servico de Logon        path = /home/samba/netlogon        writable = no        share modes = no        browseable = no   3.4- Faça um arquivo de lote (.bat) no windows (não pode ser no linux) contendo   a linha abaixo e exporte (ftp) para o diretório /home/samba/netlogon, com   permissões -rwxr-xr-x:       net time \\nome_do_servidor_samba /set /yes   3.5- Várias outras tarefas podem ser implementadas no arquivo de lote, como por   exemplo mapear os diretórios disponibilizados pelo samba para as máquinas Win:      net use unidade: \\servidor\diretório ************************************************* De:  Irio Andre Moesch Para:  horst@alternet.com.br, linux-br Assunto:  RES: (linux-br) ajuda no SAMBA Data:  Wed, 14 Apr 2004 14:18:55 -0300 Faça uma cópia do seu smb.conf e substitua por este conteúdo. depois reinicie o samba e eh soh partir para o abraço!!! ah ... lembrando samba version 2.2.8!!! ############################## # Global parameters [global] workgroup = grupo_de_trabalho netbios name = nome_do_servidor_que_aparecera_na_rede_ruindows netbios aliases = outro_nome_do_servidor_que_aparecera_na_rede_ruindows server string = Servidor de Logon - Samba Server %v encrypt passwords = Yes min passwd length = 4 smb passwd file = /etc/samba/smbpasswd passwd program = /usr/bin/passwd %u log level = 3 log file = /var/log/samba_log.%u max log size = 100 keepalive = 20 socket options = IPTOS_LOWDELAY TCP_NODELAY character set = ISO8859-1 logon script = %U.bat logon path = \\%L\profiles logon drive = H: logon home = \\%L\info domain logons = Yes os level = 100 preferred master = Yes domain master = Yes wins support = Yes remote announce = 172.16.0.0 comment = Servidor Samba admin users = root, usuario_admin printing = lprng [homes] comment = Pastas dos Usuarios valid users = %S read only = No create mask = 0664 directory mask = 0777 browseable = No [printers] comment = Impressoras Linux path = /var/spool/samba create mask = 0700 printable = Yes browseable = No [netlogon] comment = Compartilhamento de Scripts path = /etc/samba/netlogon read only = No profile acls = Yes browseable = No locking = No [info] comment = Inform tica path = /home/informatica read only = No create mask = 0700 guest ok = Yes browseable = No [profiles] comment = Linux PDC Profiles path = /etc/samba/profiles read only = No create mask = 0700 profile acls = Yes browseable = No locking = No ############################## Grande Abraço IAM -----Mensagem original----- De: horst@alternet.com.br [mailto:horst@alternet.com.br] Enviada em: terça-feira, 13 de abril de 2004 21:54 Para: linux-br Assunto: (linux-br) ajuda no SAMBA Pessoal, preciso fazer com que o samba seja um servidor de arquivos da rede e que seje dono de um dominio tambem, onde as maquinas windows loguem na rede com dominio, como se o server fosse NT ! como configuro esse dominio no Samba ?? e como fazer o XP achar esse dominio, to tentando, mas nao sei no samba como que faço ele ser um servidor com dominio de rede ! alguem pode ajudar ?? Abraços Everton ************************************************* De:  Miguel da Silva Para:  linux-br@bazar2.conectiva.com.br Assunto:  Re: (linux-br)Ambiente de rede Data:  Fri, 23 Jul 2004 14:25:44 -0300 Agora entendi qual é o problema ... bem, eu nunca tive este tipo de problema nas instalações do samba que eu fiz. Eu geralmente uso o arquivo smb.conf disponibilizado como padrão. Será que você colocou bem o grupo de trabalho dos computadores?! Vou te mandar o meu smb.conf para que você veja como é, mas já te adianto que não há diferenças marcantes entre o que eu uso e o que é fornecido como padrão ... boa sorte. Este arquivo é o que eu uso no servidor de impressão do trabalho. Miguel D. # # Sample configuration file for the Samba suite for Debian GNU/Linux. # # $Id: smb.conf,v 1.2.4.6 2002/03/13 18:56:16 peloy Exp $ # # This is the main Samba configuration file. You should read the # smb.conf(5) manual page in order to understand the options listed # here. Samba has a huge number of configurable options most of which # are not shown in this example # # Any line which starts with a ; (semi-colon) or a # (hash) # is a comment and is ignored. In this example we will use a # # for commentary and a ; for parts of the config file that you # may wish to enable # # NOTE: Whenever you modify this file you should run the command # "testparm" to check that you have not many any basic syntactic # errors. # #======================= Global Settings ======================= [global] # Change this for the workgroup/NT-domain name your Samba server will part of    workgroup = informatica # server string is the equivalent of the NT Description field    server string = Servidor de Impresora (Samba %v) # If you want to automatically load your printer list rather # than setting them up individually then you'll need this ;   load printers = yes # You may wish to override the location of the printcap file    printcap name = /etc/printcap # 'printing = cups' works nicely ;   printing = bsd ;   guest account = nobody    invalid users = root # This tells Samba to use a separate log file for each machine # that connects    log file = /var/log/samba/log.%m # Put a capping on the size of the log files (in Kb).    max log size = 1000 # If you want Samba to log though syslog only then set the following # parameter to 'yes'. Please note that logging through syslog in # Samba is still experimental. ;   syslog only = no # We want Samba to log a minimum amount of information to syslog. Everything # should go to /var/log/samba/log.{smb,nmb} instead. If you want to log # through syslog you should set the following parameter to something higher.    syslog = 0 # "security = user" is always a good idea. This will require a Unix account # in this server for every user accessing the server. See # security_level.txt for details.    security = user # You may wish to use password encryption. Please read ENCRYPTION.txt, # Win95.txt and WinNT.txt in the Samba documentation. Do not enable this # option unless you have read those documents    encrypt passwords = true # Using the following line enables you to customise your configuration # on a per machine basis. The %m gets replaced with the netbios name # of the machine that is connecting ;   include = /home/samba/etc/smb.conf.%m # Most people will find that this option gives better performance. # See speed.txt and the manual pages for details # You may want to add the following on a Linux system: #         SO_RCVBUF=8192 SO_SNDBUF=8192    socket options = TCP_NODELAY # --- Browser Control Options --- # Please _read_ BROWSING.txt and set the next four parameters according # to your network setup. The defaults are specified below (commented # out.) It's important that you read BROWSING.txt so you don't break # browsing in your network! # set local master to no if you don't want Samba to become a master # browser on your network. Otherwise the normal election rules apply ;   local master = yes # OS Level determines the precedence of this server in master browser # elections. The default value should be reasonable ;   os level = 20 # Domain Master specifies Samba to be the Domain Master Browser. This # allows Samba to collate browse lists between subnets. Don't use this # if you already have a Windows NT domain controller doing this job ;   domain master = auto # Preferred Master causes Samba to force a local browser election on startup # and gives it a slightly higher chance of winning the election ;   preferred master = auto # --- End of Browser Control Options --- # Windows Internet Name Serving Support Section: # WINS Support - Tells the NMBD component of Samba to enable it's WINS Server ;   wins support = no # WINS Server - Tells the NMBD components of Samba to be a WINS Client # Note: Samba can be either a WINS Server, or a WINS Client, but NOT both ;   wins server = w.x.y.z # This will prevent nmbd to search for NetBIOS names through DNS.    dns proxy = no # What naming service and in what order should we use to resolve host names # to IP addresses name resolve order = host # Name mangling options ;   preserve case = yes ;   short preserve case = yes # This boolean parameter controlls whether Samba attempts to sync. the Unix # password with the SMB password when the encrypted SMB password in the # /etc/samba/smbpasswd file is changed. ;   unix password sync = false # For Unix password sync. to work on a Debian GNU/Linux system, the following # parameters must be set (thanks to Augustin Luton for # sending the correct chat script for the passwd program in Debian Potato).    passwd program = /usr/bin/passwd %u    passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n . # This boolean controls whether PAM will be used for password changes # when requested by an SMB client instead of the program listed in # 'passwd program'. The default is 'no'. ;   pam password change = no # The following parameter is useful only if you have the linpopup package # installed. The samba maintainer and the linpopup maintainer are # working to ease installation and configuration of linpopup and samba. ;   message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &    obey pam restrictions = yes # Some defaults for winbind (make sure you're not using the ranges # for something else.) ;   winbind uid = 10000-20000 ;   winbind gid = 10000-20000 ;   template shell = /bin/bash #======================= Share Definitions ======================= [homes]    comment = Home Directories    browseable = no # By default, the home directories are exported read-only. Change next # parameter to 'yes' if you want to be able to write to them.    writable = no # File creation mask is set to 0700 for security reasons. If you want to # create files with group=rw permissions, set next parameter to 0775.    create mask = 0700 # Directory creation mask is set to 0700 for security reasons. If you want to # create dirs. with group=rw permissions, set next parameter to 0775.    directory mask = 0700 # Un-comment the following and create the netlogon directory for Domain Logons # (you need to configure Samba to act as a domain controller too.) ;[netlogon] ;   comment = Network Logon Service ;   path = /home/samba/netlogon ;   guest ok = yes ;   writable = no ;   share modes = no [printers]    comment = All Printers    browseable = no    path = /tmp    printable = yes    public = no    writable = no    create mode = 0700 # A sample share for sharing your CD-ROM with others. ;[cdrom] ;   comment = Samba server's CD-ROM ;   writable = no ;   locking = no ;   path = /cdrom ;   public = yes # The next two parameters show how to auto-mount a CD-ROM when the #       cdrom share is accesed. For this to work /etc/fstab must contain #       an entry like this: # #       /dev/scd0   /cdrom  iso9660 defaults,noauto,ro,user   0 0 # # The CD-ROM gets unmounted automatically after the connection to the # # If you don't want to use auto-mounting/unmounting make sure the CD #       is mounted on /cdrom # ;   preexec = /bin/mount /cdrom ;   postexec = /bin/umount /cdrom *********** SEPARADOR DE RESPOSTA  *********** On 23/07/2004 at 12:53 p.m. Edilson Santos wrote: >Não entendi ... onde mais você queria visualizá-los?! > >Até mais, Miguel D. > >*********** SEPARADOR DE RESPOSTA  *********** > >On 22/07/2004 at 10:56 a.m. Edilson Santos wrote: > >>Caros, >> >>Eu só consigo visualizar o meu servidor samba nas estaçoes de trabalho >no >>ambiente >>de rede!!! >>Alguem pode me ajudar ????? >>O que pode ser?? >>Edilson >___________________________________________ > >Miguel, >Eu nao vejo nenhum computador da minha rede em qualquer estaçao de >trabalho no >ambiente de rede!!!! >Apenas o meu servidor samba, nao sei porque ficou assim....tenho maquinas >xp e >win98 como estaçoes........ >Um abraço, >Edilson ************************************************* De: Adriano Rodrigues Para: reinaldo.dias@jch.com.br, linux-br@bazar2.conectiva.com.br Assunto: RES: (linux-br)Samba e profiles do Windows 2000 Data: Wed, 9 Jun 2004 21:14:24 -0300 Camarada, dá uma olhada aí. esse conf esta com profiles especificos pra win X, Xp e 2000. Detalhe: Vc pode configurar polices direto no conf tanto pra 2000, Xp e Win 9x. Basta criar os arquivos .pol. e salvar no netlogon do user. Té mais... [global] wins support = yes client code page = 850 code page directory = /usr/share/samba/codepages workgroup = MEUGRUPO netbios name = SERVIDOR server string = Samba Server new %h on %T %v security = user encrypt passwords = Yes smb passwd file = /etc/samba/smbpasswd passwd program = /usr/bin/passwd passwd chat = *new*password* %n\n *new*password* %n\n *changed* passwd chat debug = Yes ;log(1e2 bom max 2k por logon) (3 300k por logon) ( 5 1,3M ) log file = /var/log/samba/%m.log log level = 2 ;cria o log novo no maximo com 1000 K e o velho gera com .OLD max log size = 1000 announce version = 4.0 announce as = NT name resolve order = bcast lmhosts host wins keepalive = 300 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 stat cache size = 50 use mmap = Yes load printers = Yes printcap name = cups show add printer wizard = Yes stat cache = Yes ;logon path /NT/XP/2000 logon script = logon.bat logon path = \\%L\profiles\%u logon drive = l: ;logon home 95/98/Me logon home = \\%L\%u\.win_profile\%m ;domain Admin can logon to the domain domain admin group = root ;criar maquina automatico add user script = /usr/sbin/useradd -d /dev/null -g 100 -s /bin/false -M %u time server = yes domain logons = Yes os level = 100 lm announce = Auto lm interval = 60 preferred master = Yes local master = Yes domain master = Yes browse list = Yes enhanced browsing = Yes kernel oplocks = Yes lock spin count = 3 lock spin time = 10 oplock break wait time = 0 guest account = nobody create mask = 0744 force create mode = 00 security mask = 0777 force security mode = 00 directory mask = 0755 force directory mode = 00 directory security mask = 0777 force directory security mode = 00 force unknown acl user = 00 inherit permissions = No inherit acls = No guest only = No guest ok = No only user = No profile acls = No block size = 1024 max connections = 0 min print space = 0 strict allocate = No strict sync = No sync always = No write cache size = 0 max print jobs = 1000 printable = No postscript = No printing = cups print command = lpr -r -P%p %s lpq command = lpq -P%p lprm command = lprm -P%p %j lppause command = lpresume command = queuepause command = queueresume command = printer name = use client driver = No default devmode = No printer driver = printer driver file = /etc/samba/printers.def printer driver location = default case = lower case sensitive = No preserve case = Yes short preserve case = Yes mangle case = No mangling char = ~ hide dot files = Yes hide unreadable = No delete veto files = No map system = No map hidden = No map archive = Yes mangled names = Yes mangled map = browseable = Yes blocking locks = Yes csc policy = manual fake oplocks = No locking = Yes oplocks = Yes level2 oplocks = Yes oplock contention limit = 2 posix locking = Yes strict locking = No share modes = Yes preexec close = No root preexec = root preexec close = No root postexec = available = Yes fstype = NTFS set directory = No wide links = Yes follow symlinks = Yes delete readonly = No dos filemode = No dos filetimes = No dos filetime resolution = No fake directory create times = No msdfs root = No [homes] comment = Home Directories browseable = yes writable = yes valid users = %S create mode = 0664 directory mode = 0775 [printers] comment = All Printers path = /var/spool/samba printable = Yes printer name = lp browseable = No available = No [samba] path = /home/samba read only = No guest ok = Yes [aplic] path = /aplic guest ok = yes browseable = yes writeable = yes [netlogon] path = /etc/samba/netlogon browseable = no writeable=no guest ok = yes [profiles] path = /etc/samba/ntprof browseable = no writable= yes create mask = 0600 directory mask = 0700 Francisco Dias Enviada em: quarta-feira, 9 de junho de 2004 14:31 Para: linux-br@bazar2.conectiva.com.br Assunto: (linux-br)Samba e profiles do Windows 2000 Que parâmetro de configuração eu preciso colocar no meu Samba para obrigar as máquinas Win 2000 salvarem o perfil na própria máquina ??? Grato pela ajuda Reinaldo F. Dias ************************************************* ************************************************* ************************************************* *************************************************