não consigo ter acesso compartilhamento

1. não consigo ter acesso compartilhamento

Fabio P. Mazzi
fpmazzi

(usa CentOS)

Enviado em 05/03/2013 - 13:33h

Pessoal faz uns 05 dias que estou procurando a solução para o meu problema ja vi varios links aqui na comu, fui no google e não consigo resolver meu problema.

Preciso montar uma rede com um servidor linux (gateay, squid, dhcp, sarg, samba), no servidor que estou montando (CentOS) coloquei duas placas de rede uma eth0 com ipdinamico que pega os dados de ip do provedor (no caso como estou montando o servidor eh da minha 172.21.0.0/255.255.0.0) e outra placa eth1 com ip estatico (192.168.10.0/255.255.255.0).

Fiz o teste de internet (OK);
Configurei o compartilhamento de internet;
Fiz o compartilhamento e uma maquina cliente configurei com ip estatico e acessi internet (OK);
Configurei o dhcp;
Fiz teste no client e o dhcp e navegação (OK);

Passei entao para o samba onde começaram meus problemas:
Minha necessidade seria as pessoas desta rede acessar um compartilhamento sem precisar entrar com senha de usuario, pois as maquinas com windows 7 não terao dominio somente grupo de trabalho.

Nos testes que fiz aqui eu consigo acessar o servidor sem senha, porem quando tento acessar a pasta ele me nega o acesso dando a seguinte mensagem:

O windows nao pode acessar \\servidor\dados

No servidor a pasta dados esta com permissoes: 7777 para todos, e o usuario que criou foi root.

Uma duvida, no smb.conf esta em work group empresa e no windows 7 pro esta o padrao do rede

Sera que alguem pode me ajudar? segue meu smb.conf

# ------------------------------------------------------------------------------------
# INICIO SMB.CONF
# ------------------------------------------------------------------------------------

#======================= Global Settings =====================================

[global]

# ----------------------- Network Related Options -------------------------
#
# workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH
#
# server string is the equivalent of the NT Description field
#
# netbios name can be used to specify a server name not tied to the hostname
#
# Interfaces lets you configure Samba to use multiple interfaces
# If you have multiple network interfaces then you can list the ones
# you want to listen on (never omit localhost)
#
# Hosts Allow/Hosts Deny lets you restrict who can connect, and you can
# specifiy it as a per share option as well
#
workgroup = empresa
server string = Samba Server Version %v

; interfaces = lo eth0 192.168.12.2/24 192.168.13.2/24
; hosts allow = 127. 192.168.12. 192.168.13.

# --------------------------- Logging Options -----------------------------
log file = /var/log/samba/%m.new.log
max log size = 1000

# ----------------------- Standalone Server Options ------------------------
security = share
; passdb backend = tdbsam
# ----------------------- Domain Members Options ------------------------
domain master = no
domain logons = no

# ----------------------- Browser Control Options ----------------------------
#
# 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
#
# OS Level determines the precedence of this server in master browser
# elections. The default value should be reasonable
#
# Preferred Master causes Samba to force a local browser election on startup
# and gives it a slightly higher chance of winning the election
; local master = no
; os level = 33
; preferred master = yes

#----------------------------- Name Resolution -------------------------------
# Windows Internet Name Serving Support Section:
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
#
# - WINS Support: Tells the NMBD component of Samba to enable it's WINS Server
#
# - WINS Server: Tells the NMBD components of Samba to be a WINS Client
#
# - WINS Proxy: Tells Samba to answer name resolution queries on
# behalf of a non WINS capable client, for this to work there must be
# at least one WINS Server on the network. The default is NO.
#
# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
# via DNS nslookups.

; wins support = yes
; wins server = w.x.y.z
; wins proxy = yes

dns proxy = no


# --------------------------- Filesystem Options ---------------------------
#
# The following options can be uncommented if the filesystem supports
# Extended Attributes and they are enabled (usually by the mount option
# user_xattr). Thess options will let the admin store the DOS attributes
# in an EA and make samba not mess with the permission bits.
#
# Note: these options can also be set just per share, setting them in global
# makes them the default for all shares

; map archive = no
; map hidden = no
; map read only = no
; map system = no
username map = /etc/samba/smbusers
; encrypt passwords = yes
guest ok = yes
; guest account = nobody
; store dos attributes = yes


#============================ Share Definitions ==============================

;[homes]
; comment = Home Directories
; browseable = no
; writable = yes
; valid users = %S
; valid users = MYDOMAIN\%S

;[printers]
; comment = All Printers
; path = /var/spool/samba
; browseable = no
; guest ok = no
; writable = No
printable = yes

# Un-comment the following and create the netlogon directory for Domain Logons
; [netlogon]
; comment = Network Logon Service
; path = /var/lib/samba/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 = /var/lib/samba/profiles
; browseable = no
; guest ok = 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

[dados]
comment = compartilhamento sistema
path = /dados
public = yes
writable = yes
printable = no
browseable = yes
guest ok = yes

# ------------------------------------------------------------------------------------
# FIM SMB.CONF
# ------------------------------------------------------------------------------------



  






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts