Abner Correa
(usa Ubuntu)
Enviado em 04/01/2009 - 10:23h
Ola novamente meus caros,
Bem, é a retórica do iniciante, se ele tem um problema, este problema tende sempre a ser maior do que ele esperava ou poderia entender.
Descobri que meu problema vai alem da lentidao em abrir os compartilhamentos, pois mesmo tendo aplicado a dica do richardandrade nada consegui melhorar o desempenho. Contudo foi a partir da dica dele que eu verifiquei que não estou somente com problema de lentidão mas tambem sem permissão de abrir qualquer arquivo ou de criar/excluir dados.
Julgando ser eu o problema resolvi refazer todo smb.conf, testando varias possibilidades por mim conhecidas. Julgo que consegui exito em testar todas as possibilidades que encontrei na internet, infelizmente nenhuma delas me proporcionou sucesso em manipular os arquivos.
Outra coisa que me deixou frustrado é que consigo navegar pelos compartilhamentos, contudo determinadas pastas eu também não possuo permissão de abertura.
Abaixo posto meu novo smb.conf, desta vez vou postar todo ele:
<-- Inicio do arquivo -->
#======================= Global Settings =======================
[global]
## Browsing/Identification ###
workgroup = CORREA
server string = %h (Samba, Ubuntu)
dns proxy = no
#### Networking ####
interfaces = 192.168.0.1/24 eth0
bind interfaces only = yes
#### Debugging/Accounting ####
log file = /var/log/samba/log.%m
max log size = 1000
# syslog only = no
syslog = 0
panic action = /usr/share/samba/panic-action %d
####### Authentication #######
security = user
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user
########## Domains ###########
; domain logons = yes
; logon path = \\%N\profiles\%U
# logon path = \\%N\%U\profile
; logon drive = H:
# logon home = \\%N\%U
; logon script = logon.cmd
; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u
########## Printing ##########
# load printers = yes
; printing = bsd
; printcap name = /etc/printcap
; printing = cups
; printcap name = cups
############ Misc ############
; include = /home/samba/etc/smb.conf.%m
# socket options = TCP_NODELAY
; message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &
# domain master = auto
; idmap uid = 10000-20000
; idmap gid = 10000-20000
; template shell = /bin/bash
; winbind enum groups = yes
; winbind enum users = yes
; usershare max shares = 100
usershare allow guests = yes
#======================= Share Definitions =======================
[Teste1]
comment = Home Directories
browseable = yes
path = /media/40Gb
public = yes
ead only = no
create mask = 0777
directory mask = 0777
[Teste2]
comment = Home Directories
browseable = yes
path = /media/80Gb
public = yes
writeable = yes
create mask = 0777
directory mask = 0777
#======================= Share Definitions =======================
;read only = yes
;create mask = 0700
;directory mask = 0700
; valid users = %S
;[netlogon]
; comment = Network Logon Service
; path = /home/samba/netlogon
; guest ok = yes
; read only = yes
; share modes = no
;[profiles]
; comment = Users profiles
; path = /home/samba/profiles
; guest ok = no
; browseable = no
; create mask = 0600
; directory mask = 0700
<-- Fim do arquivo -->
Lembrando da resposta do SMarcel estarei postando tambem o log da maquina sharaph (um estacao WinXP), somente o de hoje:
<-- Inicio do arquivo -->
[2009/01/04 09:49:28, 0] lib/util_sock.c:write_data(1059)
[2009/01/04 09:49:28, 0] lib/util_sock.c:get_peer_addr_internal(1596)
getpeername failed. Error was Transport endpoint is not connected
write_data: write failure in writing to client 0.0.0.0. Error Connection reset by peer
[2009/01/04 09:49:28, 0] smbd/process.c:srv_send_smb(74)
Error writing 4 bytes to client. -1. (Transport endpoint is not connected)
[2009/01/04 09:50:08, 1] smbd/service.c:make_connection_snum(1190)
sharaph (192.168.0.5) connect to service Teste2 initially as user nobody (uid=65534, gid=65534) (pid 4831)
[2009/01/04 09:50:08, 1] smbd/service.c:make_connection_snum(1190)
sharaph (192.168.0.5) connect to service Teste1 initially as user nobody (uid=65534, gid=65534) (pid 4831)
[2009/01/04 09:50:37, 1] smbd/service.c:close_cnum(1401)
sharaph (192.168.0.5) closed connection to service Teste2
[2009/01/04 09:50:37, 1] smbd/service.c:close_cnum(1401)
sharaph (192.168.0.5) closed connection to service Teste1
[2009/01/04 09:51:18, 1] smbd/service.c:make_connection_snum(1190)
sharaph (192.168.0.5) connect to service Teste1 initially as user nobody (uid=65534, gid=65534) (pid 4932)
[2009/01/04 09:51:40, 1] smbd/service.c:close_cnum(1401)
sharaph (192.168.0.5) closed connection to service Teste1
[2009/01/04 09:52:03, 1] smbd/service.c:make_connection_snum(1190)
sharaph (192.168.0.5) connect to service Teste1 initially as user nobody (uid=65534, gid=65534) (pid 4975)
[2009/01/04 09:52:13, 1] smbd/service.c:close_cnum(1401)
sharaph (192.168.0.5) closed connection to service Teste1
[2009/01/04 10:00:07, 1] smbd/service.c:make_connection_snum(1190)
sharaph (192.168.0.5) connect to service Teste1 initially as user nobody (uid=65534, gid=65534) (pid 4983)
[2009/01/04 10:01:10, 1] smbd/service.c:close_cnum(1401)
sharaph (192.168.0.5) closed connection to service Teste1
[2009/01/04 10:01:18, 0] lib/util_sock.c:write_data(1059)
[2009/01/04 10:01:18, 0] lib/util_sock.c:get_peer_addr_internal(1596)
getpeername failed. Error was Transport endpoint is not connected
write_data: write failure in writing to client 0.0.0.0. Error Connection reset by peer
[2009/01/04 10:01:18, 0] smbd/process.c:srv_send_smb(74)
Error writing 4 bytes to client. -1. (Transport endpoint is not connected)
[2009/01/04 10:01:41, 1] smbd/service.c:make_connection_snum(1190)
sharaph (192.168.0.5) connect to service Teste1 initially as user nobody (uid=65534, gid=65534) (pid 5085)
[2009/01/04 10:02:42, 1] smbd/service.c:close_cnum(1401)
sharaph (192.168.0.5) closed connection to service Teste1
[2009/01/04 10:03:27, 1] smbd/service.c:make_connection_snum(1190)
sharaph (192.168.0.5) connect to service Teste1 initially as user nobody (uid=65534, gid=65534) (pid 5129)
[2009/01/04 10:04:49, 1] smbd/service.c:close_cnum(1401)
sharaph (192.168.0.5) closed connection to service Teste1
<-- Fim do arquivo -->
Julgo realmente que o problema sou eu, contudo somente preciso saber onde foi que eu errei.
Desde ja agradeço a atenção dos senhores na leitura de minha duvida.