um grande detalhe é que o arquivo .bat que vc criou vc tem que passar ele para formato dos.<br>Use o comando no arquivo ex: joao.bat<br>unix2dos joao.bat<br><br>Com esse comando acima as maquinas windows entenderão o que tem dentro do arquivo bat.
<br>Veja senão é isso.<br>Te respondo la de casa fui.<br><br><div><span class="gmail_quote">2006/7/4, Adriano <<a href="mailto:ibranca@hotmail.com">ibranca@hotmail.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
eh realmente eu não tinha colocado todos os compartilhamentos no primeiro<br>samba, eu só estava tentando com aqueles para depois incluir o restante,<br>segue o erro no testparm e em seguida meu smb.conf.<br><br>vlw,<br>[
root@localhost ~]# testparmLoad smb config files from<br>/etc/samba/smb.confProcessing section "[JFL]"Processing section<br>"[tomcat]"Processing section "[Home]"Processing section<br>"[netlogon]"Processing section "[Public]"Processing section
<br>"[Dogod]"Processing section "[Sysvol]"Processing section<br>"[Backup]"Processing section "[%U]"Processing section "[scripts]"Processing<br>section "[vscan]"Processing section "[/Sysvol]"Loaded services file
<br>OK.WARNING: passdb expand explicit = yes is deprecatedInvalid combination of<br>parameters for service JFL. Map<br>hidden can only work if create mask includes octal 01 (S_IXOTH).Invalid
<br>combination of parameters for service JFL.<br>Map system can only work if create mask includes octal 010 (S_IXGRP).Invalid<br>combination of parameters for service tomcat.<br>Map hidden can only work if create mask includes octal 01 (S_IXOTH).Invalid
<br>combination of parameters for service tomcat.<br>Map system can only work if create mask includes octal 010 (S_IXGRP).Invalid<br>combination of parameters for service Home.<br>Map hidden can only work if create mask includes octal 01 (S_IXOTH).Invalid
<br>combination of parameters for service Home.<br>Map system can only work if create mask includes octal 010 (S_IXGRP).Invalid<br>combination of parameters for service netlogon.<br>Map hidden can only work if create mask includes octal 01 (S_IXOTH).Invalid
<br>combination of parameters for service netlogon.<br>Map system can only work if create mask includes octal 010 (S_IXGRP).Invalid<br>combination of parameters for service Public.<br>Map hidden can only work if create mask includes octal 01 (S_IXOTH).Invalid
<br>combination of parameters for service Public.<br>Map system can only work if create mask includes octal 010 (S_IXGRP).Invalid<br>combination of parameters for service Dogod.<br>Map hidden can only work if create mask includes octal 01 (S_IXOTH).Invalid
<br>combination of parameters for service Dogod.<br>Map system can only work if create mask includes octal 010 (S_IXGRP).Invalid<br>combination of parameters for service Sysvol.<br>Map hidden can only work if create mask includes octal 01 (S_IXOTH).Invalid
<br>combination of parameters for service Sysvol.<br>Map system can only work if create mask includes octal 010 (S_IXGRP).Invalid<br>combination of parameters for service Backup.<br>Map hidden can only work if create mask includes octal 01 (S_IXOTH).Invalid
<br>combination of parameters for service Backup.<br>Map system can only work if create mask includes octal 010 (S_IXGRP).Invalid<br>combination of parameters for service .<br>Map hidden can only work if create mask includes octal 01 (S_IXOTH).Invalid
<br>combination of parameters for service .<br>Map system can only work if create mask includes octal 010 (S_IXGRP).Invalid<br>combination of parameters for service scripts.<br>Map hidden can only work if create mask includes octal 01 (S_IXOTH).Invalid
<br>combination of parameters for service scripts.<br>Map system can only work if create mask includes octal 010 (S_IXGRP).Invalid<br>combination of parameters for service vscan.<br>Map hidden can only work if create mask includes octal 01 (S_IXOTH).Invalid
<br>combination of parameters for service vscan.<br>Map system can only work if create mask includes octal 010 (S_IXGRP).Invalid<br>combination of parameters for service /Sysvol.<br>Map hidden can only work if create mask includes octal 01 (S_IXOTH).Invalid
<br>combination of parameters for service /Sysvol.<br>Map system can only work if create mask includes octal 010 (S_IXGRP).Server<br>role: ROLE_DOMAIN_PDCPress enter to see a dump of your service<br>definitions*****************************************************************
<br>************************************************# Samba config file created<br>using SWAT<br># from <a href="http://192.168.1.188">192.168.1.188</a> (<a href="http://192.168.1.188">192.168.1.188</a>)<br># Date: 2006/07/04 17:42:08
<br><br># Global parameters<br>[global]<br> workgroup = PELK<br> netbios name = SERVER<br> encrypt passwords = Yes<br> log level = 1<br> log file = /var/log/samba/log.%m<br> max log size = 50
<br> announce as = NT Workstation<br> max xmit = 65535<br> read size = 32768<br> socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8182<br> logon script = %U.bat<br> domain logons = Yes
<br> os level = 254<br> preferred master = Yes<br> domain master = Yes<br> dns proxy = No<br> wins support = Yes<br> comment = Servidor Linux<br> force group = @dogod<br> create mask = 0766
<br> force create mode = 0766<br> force security mode = 0766<br> directory mask = 0776<br> force directory mode = 0776<br> map system = Yes<br> map hidden = Yes<br> oplocks = No
<br> level2 oplocks = No<br> strict locking = Yes<br><br>[App]<br> comment = Compartilhamento App<br> path = /dogo/app<br> valid users = @dogod<br> read only = No<br><br>[JFL]<br>
comment = Compartilhamento JFL<br> path = /JFL<br> valid users = @dogod<br> read only = No<br><br>[tomcat]<br> comment = Webapps<br> path = /var/tomcat4<br> valid users = @dogod
<br> read only = No<br> guest ok = Yes<br><br>[Home]<br> comment = Compartilhamento home<br> path = /home<br> valid users = dogod<br> read only = No<br><br>[netlogon]<br> comment = Scripts
<br> path = /scripts<br> read only = No<br> guest ok = Yes<br><br>[Public]<br> comment = Compartilhamento Public<br> path = /dogo/public<br> valid users = @dogod<br> read only = No
<br><br>[Dogod]<br> comment = Compartilhamento Geral<br> path = /dogo<br> valid users = dogo<br> read only = No<br><br>[Sysvol]<br> comment = Compartilhamento sysvol<br> path = /sysvol
<br> valid users = @dogod<br> read only = No<br><br>[Backup]<br> comment = Compartilhamento Backup<br> path = /backup<br> valid users = @dogod<br> read only = No<br><br>[%U]<br> comment = Compartilhamento Home
<br> path = /home/%U<br> valid users = %U<br> read only = No<br><br>[scripts]<br> comment = Compartilhamento Scripts<br> path = /scripts<br> valid users = @dogod<br> read only = No
<br> guest ok = Yes<br><br>[vscan]<br> comment = virus-protected /samba directory<br> path = /testesamb<br> valid users = %U<br> read only = No<br> guest ok = Yes<br> vfs object = /usr/lib/samba/vfs/vscan-
clamav.so<br><br><br>----- Original Message -----<br>From: "Felipe Tocchetto" <<a href="mailto:felipe@tocchetto.com">felipe@tocchetto.com</a>><br>To: "Lista de discussão voltada para os usuários brasileiros do Fedora"
<br><<a href="mailto:fedora-users-br@redhat.com">fedora-users-br@redhat.com</a>><br>Sent: Tuesday, July 04, 2006 5:08 PM<br>Subject: Re: [Fedora-users-br] Samba no Fedora 5, duvidas autenticação win98<br><br><br>> O primeiro arquivo que vocês postou aqui nao tinha diversas seções que
<br>> 'apareceram' agora, como por exemplo o compartilhamento JLF.<br>><br>> Poste seu smb.conf completo aqui, também poste o que os logs estão<br>apresentando.<br>><br>> Não sei como você está usando este samba, se está apenas
<br>> compartilhando diretórios ou esta servindo de PDC tb. Lembre-se que no<br>> Win98, diferentemente do XP (onde voce pode especificar um usuario<br>> para conectar ao compartilhamento) o 98 passa como parametro user o
<br>> usuario logado na máquina.<br>><br>> Felipe<br>><br>> Em 04/07/06, Adriano<<a href="mailto:ibranca@hotmail.com">ibranca@hotmail.com</a>> escreveu:<br>> > Felipe Fiz as alteraçõesno smb.conf
netbios name = pelk e workgoup<br>teste,<br>> > coloquei a estação para dar o login em pelk na estação da a mensagem<br>> > parametro invalido, rodei o testparm olha o result, vlw kara<br>> ><br>> > Adriano
<br>> > [root@localhost ~]# testparm<br>> > Load smb config files from /etc/samba/smb.conf<br>> > Processing section "[JFL]"<br>> > Processing section "[tomcat]"<br>> > Processing section "[Home]"
<br>> > Processing section "[netlogon]"<br>> > Processing section "[Public]"<br>> > Processing section "[Dogod]"<br>> > Processing section "[Sysvol]"<br>> > Processing section "[Backup]"
<br>> > Processing section "[%U]"<br>> > Processing section "[scripts]"<br>> > Processing section "[vscan]"<br>> > Processing section "[/Sysvol]"<br>> > Loaded services file OK.
<br>> > WARNING: passdb expand explicit = yes is deprecated<br>> > Invalid combination of parameters for service JFL.<br>> > Map hidden can only work if create mask includes octal 01 (S_IXOTH).<br>> > Invalid combination of parameters for service JFL.
<br>> > Map system can only work if create mask includes octal 010 (S_IXGRP).<br>> > Invalid combination of parameters for service tomcat.<br>> > Map hidden can only work if create mask includes octal 01 (S_IXOTH).
<br>> > Invalid combination of parameters for service tomcat.<br>> > Map system can only work if create mask includes octal 010 (S_IXGRP).<br>> > Invalid combination of parameters for service Home.<br>> > Map hidden can only work if create mask includes octal 01 (S_IXOTH).
<br>> > Invalid combination of parameters for service Home.<br>> > Map system can only work if create mask includes octal 010 (S_IXGRP).<br>> > Invalid combination of parameters for service netlogon.<br>
> > Map hidden can only work if create mask includes octal 01 (S_IXOTH).<br>> > Invalid combination of parameters for service netlogon.<br>> > Map system can only work if create mask includes octal 010 (S_IXGRP).
<br>> > Invalid combination of parameters for service Public.<br>> > Map hidden can only work if create mask includes octal 01 (S_IXOTH).<br>> > Invalid combination of parameters for service Public.<br>> > Map system can only work if create mask includes octal 010 (S_IXGRP).
<br>> > Invalid combination of parameters for service Dogod.<br>> > Map hidden can only work if create mask includes octal 01 (S_IXOTH).<br>> > Invalid combination of parameters for service Dogod.<br>> > Map system can only work if create mask includes octal 010 (S_IXGRP).
<br>> > Invalid combination of parameters for service Sysvol.<br>> > Map hidden can only work if create mask includes octal 01 (S_IXOTH).<br>> > Invalid combination of parameters for service Sysvol.<br>> > Map system can only work if create mask includes octal 010 (S_IXGRP).
<br>> > Invalid combination of parameters for service Backup.<br>> > Map hidden can only work if create mask includes octal 01 (S_IXOTH).<br>> > Invalid combination of parameters for service Backup.<br>> > Map system can only work if create mask includes octal 010 (S_IXGRP).
<br>> > Invalid combination of parameters for service .<br>> > Map hidden can only work if create mask includes octal 01 (S_IXOTH).<br>> > Invalid combination of parameters for service .<br>> > Map system can only work if create mask includes octal 010 (S_IXGRP).
<br>> > Invalid combination of parameters for service scripts.<br>> > Map hidden can only work if create mask includes octal 01 (S_IXOTH).<br>> > Invalid combination of parameters for service scripts.<br>
> > Map system can only work if create mask includes octal 010 (S_IXGRP).<br>> > Invalid combination of parameters for service vscan.<br>> > Map hidden can only work if create mask includes octal 01 (S_IXOTH).
<br>> > Invalid combination of parameters for service vscan.<br>> > Map system can only work if create mask includes octal 010 (S_IXGRP).<br>> > Invalid combination of parameters for service /Sysvol.<br>
> > Map hidden can only work if create mask includes octal 01 (S_IXOTH).<br>> > Invalid combination of parameters for service /Sysvol.<br>> > Map system can only work if create mask includes octal 010 (S_IXGRP).
<br>> > Server role: ROLE_DOMAIN_PDC<br>> > Press enter to see a dump of your service definitions<br>> ><br>> > ----- Original Message -----<br>> > From: "Felipe Tocchetto" <<a href="mailto:felipe@tocchetto.com">
felipe@tocchetto.com</a>><br>> > To: "Lista de discussão voltada para os usuários brasileiros do Fedora"<br>> > <<a href="mailto:fedora-users-br@redhat.com">fedora-users-br@redhat.com</a>><br>
> > Sent: Monday, July 03, 2006 5:35 PM<br>> > Subject: Re: [Fedora-users-br] Samba no Fedora 5, duvidas autenticação<br>win98<br>> ><br>> ><br>> > > Bom, de cara o erro que vi é:<br>> > >
<br>> > > Você disse:<br>> > > "Na estação coloquei para efetuar o logon no servidor pelk"<br>> > ><br>> > > Mas o nome de seu servidor está "server" :<br>> > > netbios name = server
<br>> > ><br>> > > Mude para "pelk" se esse for realmente o nome de seu servidor.<br>> > ><br>> > > Outra coisa, seu grupo de trabalho está como "pelk"<br>> > > workgroup = pelk
<br>> > ><br>> > > Mude para o nome do grupo de trabalho ou dominio de sua rede.<br>> > ><br>> > > Tente isto e veja se funciona...<br>> > ><br>> > > Teste tb seu smb.conf
com o testparm<br>> > ><br>> > > --<br>> > > Felipe L. Tocchetto<br>> > > <a href="http://felipe.tocchetto.com">http://felipe.tocchetto.com</a><br>> > ><br>> > > 2006/7/3, Adriano <
<a href="mailto:ibranca@hotmail.com">ibranca@hotmail.com</a>>:<br>> > > ><br>> > > ><br>> > > ><br>> > > > Boas pessoal estou tentando configurar o Samba no Meu Fedora Core 5,
<br>> > porém<br>> > > > após criar o grupo e adicionar os users no servidor e tentar dar um<br>> > login<br>> > > > pela estação ele sempre reclama da senha, ja refiz a senha varias<br>
vezes<br>> > e<br>> > > > nada. Segue meu smb.conf e os comandos usados para criar grupos e<br>> > usuários,<br>> > > > vlw<br>> > > ><br>> > > ><br>> > > > Na estação coloquei para efetuar o logon no servidor pelk
<br>> > > ><br>> > > > Toda ajuda ou dica eh bem vinda<br>> > > ><br>> > > > Abraços<br>> > > > Adriano<br>> > > ><br>> > > ><br>> > > > comandos
<br>> > > > groupadd dogod<br>> > > > adduser -g dogod adriano<br>> > > > smbpasswd -a adriano<br>> > > > #####<br>> > > > #####<br>> > > ><br>> > > > # Samba config file created using SWAT
<br>> > > > #<br>> > > > #<br>> > > > # Global parameters<br>> > > > [global]<br>> > > > workgroup = pelk<br>> > > > netbios name = server<br>> > > > security = user
<br>> > > > encrypt passwords = Yes<br>> > > > logon script = %U.bat<br>> > > > domain logons = Yes<br>> > > > preferred master = True<br>> > > > domain master = True
<br>> > > > dns proxy = No<br>> > > > comment = Servidor Linux<br>> > > > os level = 254<br>> > > > map to guest = never<br>> > > > kernel oplocks = true<br>> > > > blockin locks = true
<br>> > > > level2 oplocks = false<br>> > > > locking = true<br>> > > > oplocks = no<br>> > > > strict locking = yes<br>> > > > read raw = yes<br>> > > > write raw = yes
<br>> > > > max xmit = 65535<br>> > > > read size = 32768<br>> > > > announce as = NT Workstation<br>> > > > getwd cache = yes<br>> > > > socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=8192
<br>> > > > SO_RCVBUF=8182<br>> > > > smb passwd file = /etc/samba/smbpasswd<br>> > > > wins support = yes<br>> > > > map archive = yes<br>> > > > map system = yes
<br>> > > > map hidden = yes<br>> > > > log file = /var/log/samba/log.%m<br>> > > > debug level = 1<br>> > > > max log size = 50<br>> > > > force security mode = 0766
<br>> > > > force group = @dogod<br>> > > > create mode = 0766<br>> > > > force create mode = 0766<br>> > > > directory mode = 0776<br>> > > > force directory mode = 0776
<br>> > > ><br>> > > ><br>> > > > [App]<br>> > > > comment = Compartilhamento App<br>> > > > path = /dogo/app<br>> > > > valid users = @dogod<br>> > > > browseable = yes
<br>> > > > case sensitive = no<br>> > > > read only = No<br>> > > ><br>> > > > [Home]<br>> > > > comment = Compartilhamento home<br>> > > > path = /home
<br>> > > > valid users = dogod<br>> > > > browseable = yes<br>> > > > case sensitive = no<br>> > > > read only = No<br>> > > ><br>> > > > [netlogon]
<br>> > > > comment = Scripts<br>> > > > path = /scripts<br>> > > > public = yes<br>> > > > read only = no<br>> > > ><br>> > > ><br>> > > > [Public]
<br>> > > > comment = Compartilhamento Public<br>> > > > path = /dogo/public<br>> > > > valid users = @dogod<br>> > > > browseable = yes<br>> > > > case sensitive = no
<br>> > > > read only = No<br>> > > > # vfs object = vscan-clamav.so<br>> > > > # vscan-clamav: config-file = /etc/samba/vscan-clamav.conf<br>> > > ><br>> > > >
<br>> > > > [%U]<br>> > > > comment = Compartilhamento Home<br>> > > > path = /home/%U<br>> > > > valid users = %U<br>> > > > browseable = yes<br>> > > > case sensitive = no
<br>> > > > read only = no<br>> > > ><br>> > > ><br>> > > > [scripts]<br>> > > > comment = Compartilhamento Scripts<br>> > > > path = /scripts<br>> > > > valid users = @dogod
<br>> > > > public = yes<br>> > > > browseable = yes<br>> > > > case sensitive = no<br>> > > > read only = no<br>> > > ><br>> > > > [vscan]<br>> > > > comment = virus-protected /samba directory
<br>> > > > path = /testesamb<br>> > > > vfs object = /usr/lib/samba/vfs/vscan-clamav.so<br>> > > > vscan-clamav: config-file = /etc/samba/vscan-clamav.conf<br>> > > > writeable = yes
<br>> > > > valid users = %U<br>> > > > browseable = yes<br>> > > > guest ok = yes<br>> > > > # valid users = @dogod<br>> > > > # browseable = yes<br>
> > > > # case sensitive = no<br>> > > > # read only = No<br>> > > ><br>> > > ><br>> > > > --<br>> > > > Fedora-users-br mailing list<br>> > > >
<a href="mailto:Fedora-users-br@redhat.com">Fedora-users-br@redhat.com</a><br>> > > > <a href="https://www.redhat.com/mailman/listinfo/fedora-users-br">https://www.redhat.com/mailman/listinfo/fedora-users-br</a>
<br>> > > ><br>> > > ><br>> > > ><br>> > ><br>> > > --<br>> > > Fedora-users-br mailing list<br>> > > <a href="mailto:Fedora-users-br@redhat.com">Fedora-users-br@redhat.com
</a><br>> > > <a href="https://www.redhat.com/mailman/listinfo/fedora-users-br">https://www.redhat.com/mailman/listinfo/fedora-users-br</a><br>> > ><br>> ><br>> > --<br>> > Fedora-users-br mailing list
<br>> > <a href="mailto:Fedora-users-br@redhat.com">Fedora-users-br@redhat.com</a><br>> > <a href="https://www.redhat.com/mailman/listinfo/fedora-users-br">https://www.redhat.com/mailman/listinfo/fedora-users-br
</a><br>> ><br>><br>><br>> --<br>> Felipe L. Tocchetto<br>> <a href="http://felipe.tocchetto.com">http://felipe.tocchetto.com</a><br>><br>> --<br>> Fedora-users-br mailing list<br>> <a href="mailto:Fedora-users-br@redhat.com">
Fedora-users-br@redhat.com</a><br>> <a href="https://www.redhat.com/mailman/listinfo/fedora-users-br">https://www.redhat.com/mailman/listinfo/fedora-users-br</a><br>><br><br>--<br>Fedora-users-br mailing list<br><a href="mailto:Fedora-users-br@redhat.com">
Fedora-users-br@redhat.com</a><br><a href="https://www.redhat.com/mailman/listinfo/fedora-users-br">https://www.redhat.com/mailman/listinfo/fedora-users-br</a><br></blockquote></div><br><br clear="all"><br>-- <br>Cristiano Furtado dos Santos
<br>Administrador de Sistemas Linux<br><a href="http://fedora.org.br">http://fedora.org.br</a><br><a href="http://jasonnfedora.no-ip.org/repositorio">http://jasonnfedora.no-ip.org/repositorio</a>