Re: [Fedora-users-br] Samba no Fedora 5, duvidas autenticação win98
Cristiano Furtado
jasonnfedora em gmail.com
Ter Jul 4 17:19:15 UTC 2006
Cara esta aqui um smb.conf funcional. Utilizo ele em todas as empresas que
presto serviço. Nunca tive nenhum tipo de problemas com ele ok? Segue
abaixo:
[root em fedorabrasil ~]# cat /etc/samba/smb.conf
# from 192.168.0.235 (192.168.0.235)
# Date: 2005/09/01 14:53:45
# Global parameters
[global]
workgroup = fedorabrasil
netbios name = SMB_fedorabrasil
server string = Servidor SMB fbrasil
interfaces = eth0, 192.168.0.1/255.255.255.0
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n
*passwd:*all*authentication*tokens*updated*successfully*
passwd chat debug = Yes
unix password sync = Yes
log level = 2
log file = /var/log/samba/log.%m
max log size = 100
time server = Yes
deadtime = 1
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
add user script = /usr/sbin/useradd -d /dev/null -s /dev/null %u
add machine script = /usr/sbin/useradd -n -d /dev/null -g machines
-c 'Machine Account' -s /bin/false %u
logon script = %U.bat
logon path =
domain logons = Yes
os level = 1000
preferred master = Yes
domain master = Yes
dns proxy = No
wins support = Yes
printcap name = /etc/cups
load printers = Yes
printing = cups
debug level = 1
remote announce = 192.168.0.255
admin users = root
hosts allow = 192.168.0., 127.
use client driver = Yes
veto files = /*.eml/*.nws/riched20.dll/
[homes]
comment = Home Directories
read only = No
browseable = No
[netlogon]
comment = Servidor de Scripts
path = /home/netlogon
browseable = No
[printers]
comment = All Printers
path = /var/spool/samba
browseable = No
public = Yes
guest ok = Yes
writable = No
printable = Yes
printer admin = root
[cdrom]
comment = dvd compartilhado
path = /mnt/dvdrom
public = yes
writable = no
[Profiles]
path = /home/profiles
read only = No
create mask = 0600
directory mask = 0700
nt acl support = No
browseable = No
[public]
path = /arquivos/public
valid users = root, @wheel, @diretoria, @matriz, jasonn
read only = No
create mask = 02775
directory mask = 02775
[privado]
path = /var/www/html
valid users = jasonn
read only = No
create mask = 02775
directory mask = 02775
Lembrando que é necessaário a criação da pasta /home/netlogon
E tambem criar os scripts tipo jasonn.bat
Segue um script para esse usuario no win98:
@echo off
rem
============================================================================
rem Logon script padrãra a rede
rem Modificado em Sex 07 Out 2005 11:17 PM
rem
============================================================================
if %OS%.==Windows_NT. goto WinNT
rem =====================================================
:Win9x
rem =====================================================
echo Sincronizando o relacao com o mistica
net time \\smb_fbrasil /set /yes
echo Mapeando a pasta do usuario em Z
net use Z: /HOME /YES
goto end
rem =====
rem =====================================================
:WinNT
rem =====================================================
echo Mapeando a pasta de login em V:
net use V: \\smb_fbrasil\public /persistent:no
rem echo Mapeando a pasta de login em X:
rem net use X: \\smb_fbrasil\diretoria /persistent:no
goto end
rem =====
rem =====================================================
:end
bom ae esta tudo que vc precisa.
E outra coisa com esse smb.conf vc ja pode colocar as maquinas windows no
dominio direto sem rpecisar cadastra-las antes. Outra coisa é necessário vc
criar um user root no smbpasswd da seguinte forma:
smbpasswd -a root
PS. Esse root não é o seu root do linux e sim somente para o samba ok?
Espero ter realmente ajudado.
Em 04/07/06, Adriano <ibranca em hotmail.com> escreveu:
>
> Felipe Fiz as alteraçõesno smb.conf netbios name = pelk e workgoup teste,
> coloquei a estação para dar o login em pelk na estação da a mensagem
> parametro invalido, rodei o testparm olha o result, vlw kara
>
> Adriano
> [root em localhost ~]# testparm
> Load smb config files from /etc/samba/smb.conf
> Processing section "[JFL]"
> Processing section "[tomcat]"
> Processing section "[Home]"
> Processing section "[netlogon]"
> Processing section "[Public]"
> Processing section "[Dogod]"
> Processing section "[Sysvol]"
> Processing section "[Backup]"
> Processing section "[%U]"
> Processing section "[scripts]"
> Processing section "[vscan]"
> Processing section "[/Sysvol]"
> Loaded services file OK.
> WARNING: passdb expand explicit = yes is deprecated
> Invalid combination of parameters for service JFL.
> Map hidden can only work if create mask includes octal 01 (S_IXOTH).
> Invalid combination of parameters for service JFL.
> Map system can only work if create mask includes octal 010 (S_IXGRP).
> Invalid combination of parameters for service tomcat.
> Map hidden can only work if create mask includes octal 01 (S_IXOTH).
> Invalid combination of parameters for service tomcat.
> Map system can only work if create mask includes octal 010 (S_IXGRP).
> Invalid combination of parameters for service Home.
> Map hidden can only work if create mask includes octal 01 (S_IXOTH).
> Invalid combination of parameters for service Home.
> Map system can only work if create mask includes octal 010 (S_IXGRP).
> Invalid combination of parameters for service netlogon.
> Map hidden can only work if create mask includes octal 01 (S_IXOTH).
> Invalid combination of parameters for service netlogon.
> Map system can only work if create mask includes octal 010 (S_IXGRP).
> Invalid combination of parameters for service Public.
> Map hidden can only work if create mask includes octal 01 (S_IXOTH).
> Invalid combination of parameters for service Public.
> Map system can only work if create mask includes octal 010 (S_IXGRP).
> Invalid combination of parameters for service Dogod.
> Map hidden can only work if create mask includes octal 01 (S_IXOTH).
> Invalid combination of parameters for service Dogod.
> Map system can only work if create mask includes octal 010 (S_IXGRP).
> Invalid combination of parameters for service Sysvol.
> Map hidden can only work if create mask includes octal 01 (S_IXOTH).
> Invalid combination of parameters for service Sysvol.
> Map system can only work if create mask includes octal 010 (S_IXGRP).
> Invalid combination of parameters for service Backup.
> Map hidden can only work if create mask includes octal 01 (S_IXOTH).
> Invalid combination of parameters for service Backup.
> Map system can only work if create mask includes octal 010 (S_IXGRP).
> Invalid combination of parameters for service .
> Map hidden can only work if create mask includes octal 01 (S_IXOTH).
> Invalid combination of parameters for service .
> Map system can only work if create mask includes octal 010 (S_IXGRP).
> Invalid combination of parameters for service scripts.
> Map hidden can only work if create mask includes octal 01 (S_IXOTH).
> Invalid combination of parameters for service scripts.
> Map system can only work if create mask includes octal 010 (S_IXGRP).
> Invalid combination of parameters for service vscan.
> Map hidden can only work if create mask includes octal 01 (S_IXOTH).
> Invalid combination of parameters for service vscan.
> Map system can only work if create mask includes octal 010 (S_IXGRP).
> Invalid combination of parameters for service /Sysvol.
> Map hidden can only work if create mask includes octal 01 (S_IXOTH).
> Invalid combination of parameters for service /Sysvol.
> Map system can only work if create mask includes octal 010 (S_IXGRP).
> Server role: ROLE_DOMAIN_PDC
> Press enter to see a dump of your service definitions
>
> ----- Original Message -----
> From: "Felipe Tocchetto" <felipe em tocchetto.com>
> To: "Lista de discussão voltada para os usuários brasileiros do Fedora"
> <fedora-users-br em redhat.com>
> Sent: Monday, July 03, 2006 5:35 PM
> Subject: Re: [Fedora-users-br] Samba no Fedora 5, duvidas autenticação
> win98
>
>
> > Bom, de cara o erro que vi é:
> >
> > Você disse:
> > "Na estação coloquei para efetuar o logon no servidor pelk"
> >
> > Mas o nome de seu servidor está "server" :
> > netbios name = server
> >
> > Mude para "pelk" se esse for realmente o nome de seu servidor.
> >
> > Outra coisa, seu grupo de trabalho está como "pelk"
> > workgroup = pelk
> >
> > Mude para o nome do grupo de trabalho ou dominio de sua rede.
> >
> > Tente isto e veja se funciona...
> >
> > Teste tb seu smb.conf com o testparm
> >
> > --
> > Felipe L. Tocchetto
> > http://felipe.tocchetto.com
> >
> > 2006/7/3, Adriano <ibranca em hotmail.com>:
> > >
> > >
> > >
> > > Boas pessoal estou tentando configurar o Samba no Meu Fedora Core 5,
> porém
> > > após criar o grupo e adicionar os users no servidor e tentar dar um
> login
> > > pela estação ele sempre reclama da senha, ja refiz a senha varias
> vezes
> e
> > > nada. Segue meu smb.conf e os comandos usados para criar grupos e
> usuários,
> > > vlw
> > >
> > >
> > > Na estação coloquei para efetuar o logon no servidor pelk
> > >
> > > Toda ajuda ou dica eh bem vinda
> > >
> > > Abraços
> > > Adriano
> > >
> > >
> > > comandos
> > > groupadd dogod
> > > adduser -g dogod adriano
> > > smbpasswd -a adriano
> > > #####
> > > #####
> > >
> > > # Samba config file created using SWAT
> > > #
> > > #
> > > # Global parameters
> > > [global]
> > > workgroup = pelk
> > > netbios name = server
> > > security = user
> > > encrypt passwords = Yes
> > > logon script = %U.bat
> > > domain logons = Yes
> > > preferred master = True
> > > domain master = True
> > > dns proxy = No
> > > comment = Servidor Linux
> > > os level = 254
> > > map to guest = never
> > > kernel oplocks = true
> > > blockin locks = true
> > > level2 oplocks = false
> > > locking = true
> > > oplocks = no
> > > strict locking = yes
> > > read raw = yes
> > > write raw = yes
> > > max xmit = 65535
> > > read size = 32768
> > > announce as = NT Workstation
> > > getwd cache = yes
> > > socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=8192
> > > SO_RCVBUF=8182
> > > smb passwd file = /etc/samba/smbpasswd
> > > wins support = yes
> > > map archive = yes
> > > map system = yes
> > > map hidden = yes
> > > log file = /var/log/samba/log.%m
> > > debug level = 1
> > > max log size = 50
> > > force security mode = 0766
> > > force group = @dogod
> > > create mode = 0766
> > > force create mode = 0766
> > > directory mode = 0776
> > > force directory mode = 0776
> > >
> > >
> > > [App]
> > > comment = Compartilhamento App
> > > path = /dogo/app
> > > valid users = @dogod
> > > browseable = yes
> > > case sensitive = no
> > > read only = No
> > >
> > > [Home]
> > > comment = Compartilhamento home
> > > path = /home
> > > valid users = dogod
> > > browseable = yes
> > > case sensitive = no
> > > read only = No
> > >
> > > [netlogon]
> > > comment = Scripts
> > > path = /scripts
> > > public = yes
> > > read only = no
> > >
> > >
> > > [Public]
> > > comment = Compartilhamento Public
> > > path = /dogo/public
> > > valid users = @dogod
> > > browseable = yes
> > > case sensitive = no
> > > read only = No
> > > # vfs object = vscan-clamav.so
> > > # vscan-clamav: config-file = /etc/samba/vscan-clamav.conf
> > >
> > >
> > > [%U]
> > > comment = Compartilhamento Home
> > > path = /home/%U
> > > valid users = %U
> > > browseable = yes
> > > case sensitive = no
> > > read only = no
> > >
> > >
> > > [scripts]
> > > comment = Compartilhamento Scripts
> > > path = /scripts
> > > valid users = @dogod
> > > public = yes
> > > browseable = yes
> > > case sensitive = no
> > > read only = no
> > >
> > > [vscan]
> > > comment = virus-protected /samba directory
> > > path = /testesamb
> > > vfs object = /usr/lib/samba/vfs/vscan-clamav.so
> > > vscan-clamav: config-file = /etc/samba/vscan-clamav.conf
> > > writeable = yes
> > > valid users = %U
> > > browseable = yes
> > > guest ok = yes
> > > # valid users = @dogod
> > > # browseable = yes
> > > # case sensitive = no
> > > # read only = No
> > >
> > >
> > > --
> > > Fedora-users-br mailing list
> > > Fedora-users-br em redhat.com
> > > https://www.redhat.com/mailman/listinfo/fedora-users-br
> > >
> > >
> > >
> >
> > --
> > Fedora-users-br mailing list
> > Fedora-users-br em redhat.com
> > https://www.redhat.com/mailman/listinfo/fedora-users-br
> >
>
> --
> Fedora-users-br mailing list
> Fedora-users-br em redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-users-br
>
--
Cristiano Furtado dos Santos
Administrador de Sistemas Linux
http://fedora.org.br
http://jasonnfedora.no-ip.org/repositorio
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: <http://listman.redhat.com/archives/fedora-users-br/attachments/20060704/3d8c6b51/attachment.htm>
Mais detalhes sobre a lista de discussão Fedora-users-br