Enviada: Sex Fev 15, 2008 11:07 pm Assunto: Fedora 8 - Problemas com Samba ( Share )
Bom galera, a situação é a seguinte, tenho um PC que tem apenas duas funções, servir como Multimediabox pra rodar video e música, e para servir de armazenador de arquivos de mídia..
por exemplo... em vez de eu salvar as mp3 no meu laptop, eu quero salvar no Mediabox e executar pela rede, ou mesmo no sistema de som ligaddo a ele!
A questão é a seguinte, sei que muita gente vai me olhar torto, mais eu quero conseguir configurar o samba para permitir acesso as pastas compartilhadas por qualquer pessoa na rede!
tenho muitos amigos que trazem laptop e me passam arquivos e copiam arquivos de mim!
por enquanto estou sendo obrigado a usar o Windows XP pra isso ( o que é um disperdício de processamento e memoria! )
-----------------
Atualmente meus experimentos com o samba tem sido extremamente frustantes.. tem horas que nenhuma maquina encontra a maquina com o smb ativado, ( nem ela propria ), e outras até funcionam perfeitamente como eu queria, mais apenas depois que eu do o comando "smbclient -L localhost" o que mata toda a praticidade..
mais nem mesmo assim funciona sempre!!!
algum me dá uma luz?
Código:
#======================= Global Settings =====================================
[global]
workgroup = grupo
server string = Box
security = share
#ja tentei com o e sem a ; na próxima linha (essa e a minha faixa de ip mesmo!)
;hosts allow = 192.168.0. 127.
; guest account = pcguest
log file = /usr/local/samba/var/log.%m
max log size = 50
dns proxy = no
; encrypt passwords = yes
guest ok = yes
guest account = dudu
; add user script = /usr/sbin/useradd %u
; add group script = /usr/sbin/groupadd %g
; add machine script = /usr/sbin/adduser -n -g machines -c Machine -d /dev/null -s /bin/false %u
; delete user script = /usr/sbin/userdel %u
; delete user from group script = /usr/sbin/deluser %u %g
; delete group script = /usr/sbin/groupdel %g
#============================ Share Definitions ==============================
;[homes]
; comment = Home Directories
; browseable = yes
; writable = No
# Un-comment the following and create the netlogon directory for Domain Logons
; [netlogon]
; comment = Network Logon Service
; path = /usr/local/samba/lib/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 = /usr/local/samba/profiles
; browseable = no
; guest ok = yes
# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
[printers]
comment = All Printers
path = /usr/spool/samba
browseable = no
# Set public = yes to allow user 'guest account' to print
; guest ok = no
; writable = No
printable = yes
# This one is useful for people to share files
;[tmp]
; comment = Temporary file space
; path = /tmp
; read only = no
; public = yes
# A publicly accessible directory, but read only, except for people in
# the "staff" group
;[public]
; comment = Public Stuff
; path = /home/samba
; public = yes
; writable = yes
; printable = no
; write list = @staff
# Other examples.
#
# A private printer, usable only by fred. Spool data will be placed in fred's
# home directory. Note that fred must have write access to the spool directory,
# wherever it is.
;[fredsprn]
; comment = Fred's Printer
; valid users = fred
; path = /homes/fred
; printer = freds_printer
; public = no
; writable = no
; printable = yes
# A private directory, usable only by fred. Note that fred requires write
# access to the directory.
;[fredsdir]
; comment = Fred's Service
; path = /usr/somewhere/private
; valid users = fred
; public = no
; writable = yes
; printable = no
# a service which has a different directory for each machine that connects
# this allows you to tailor configurations to incoming machines. You could
# also use the %U option to tailor it by user name.
# The %m gets replaced with the machine name that is connecting.
;[pchome]
; comment = PC Directories
; path = /usr/pc/%m
; public = no
; writable = yes
# A publicly accessible directory, read/write to all users. Note that all files
# created in the directory by users will be owned by the default user, so
# any user with access can delete any other user's files. Obviously this
# directory must be writable by the default user. Another user could of course
# be specified, in which case all files would be owned by that user instead.
;[public]
; path = /usr/somewhere/else/public
; public = yes
; only guest = yes
; writable = yes
; printable = no
# The following two entries demonstrate how to share a directory so that two
# users can place files there that will be owned by the specific users. In this
# setup, the directory should be writable by both users and should have the
# sticky bit set on it to prevent abuse. Obviously this could be extended to
# as many users as required.
;[myshare]
; comment = Mary's and Fred's stuff
; path = /usr/somewhere/shared
; valid users = mary fred
; public = no
; writable = yes
; printable = no
; create mask = 0765